Skip to content

Commit

Permalink
chore(ci): add missing step to set REF_NAME based on branch (#2260)
Browse files Browse the repository at this point in the history
  • Loading branch information
kadel authored Jan 28, 2025
1 parent ee9d407 commit 6d2d676
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/next-build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ jobs:
needs:
- build-image
steps:
- name: Prepare
run: |
ref_name=${{ github.ref_name }}
if [ "$ref_name" == "main" ]; then
ref_name="next"
fi
echo "REF_NAME=$ref_name" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 6d2d676

Please # to comment.