From 68d4fc18a057f855bdf8c3bb9c774f1a10a7e86c Mon Sep 17 00:00:00 2001 From: pkong-ds Date: Wed, 22 May 2024 13:36:24 +0800 Subject: [PATCH] Fix git legacy branch name `master` into `main` --- .github/workflows/cd.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index 6297076..1c17c89 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -7,7 +7,7 @@ concurrency: on: push: branches: - - master + - main jobs: cd: @@ -24,7 +24,7 @@ jobs: - run: npm ci - name: Set env to staging run: | - if [[ "${{ github.ref_name }}" == "master" ]]; then + if [[ "${{ github.ref_name }}" == "main" ]]; then echo "ENV=staging" >> $GITHUB_ENV elif [[ "${{ github.ref_name }}" == "production" ]]; then echo "ENV=production" >> $GITHUB_ENV