Skip to content

Commit

Permalink
trim v prefix if tag
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanBout authored Feb 5, 2025
1 parent e947730 commit 3d2a714
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ jobs:
contents: read
packages: write
steps:
- name: Remove v prefix from tag name
if: ${{ startsWith(github.ref, "refs/tags/v") }}
run: |
echo "BRANCH_NAME=${TAG_NAME#v}" >> $GITHUB_ENV
env:
TAG_NAME: ${{ env.BRANCH_NAME }}
- name: Checkout Code
uses: actions/checkout@v4
- name: Login to GHCR
Expand Down

0 comments on commit 3d2a714

Please sign in to comment.