Skip to content

Commit

Permalink
Update releases.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
altitudems authored Aug 8, 2024
1 parent 9a54ba9 commit 97ce354
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Get release version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
id: vars
run: |
if [[ $GITHUB_REF == refs/tags/* ]]; then
echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
else
echo "RELEASE_VERSION=latest" >> $GITHUB_ENV
fi
- name: Checkout
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
Expand Down

0 comments on commit 97ce354

Please sign in to comment.