Skip to content

Commit

Permalink
CI: fix build-image.yaml can't get branch name error
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankGTY committed Sep 29, 2024
1 parent 3290519 commit f2896b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:
- name: Extract branch name
id: extract_branch
run: echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV

- name: Extract Tag
id: extract_tag
run: echo ::set-output name=version::${GITHUB_REF/refs\/tags\//}
run: echo "version=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Run buildx
run: |
Expand Down

0 comments on commit f2896b6

Please sign in to comment.