Skip to content

Commit

Permalink
Fix git legacy branch name master into main
Browse files Browse the repository at this point in the history
Fix git legacy branch name `master` into `main`
  • Loading branch information
pkong-ds authored May 22, 2024
2 parents 435e3ff + 68d4fc1 commit 1ea10d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ concurrency:
on:
push:
branches:
- master
- main

jobs:
cd:
Expand All @@ -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
Expand Down

0 comments on commit 1ea10d8

Please sign in to comment.