Skip to content

Commit

Permalink
🐛 FIX: Fix master builds identifying as snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelborn committed Aug 3, 2023
1 parent 43d9278 commit 1c16df2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:

env:
MODULE_ID: docbox
SNAPSHOT: ${{ github.ref_name != 'main' && github.ref_name != 'master' }}

jobs:
#############################################
Expand Down Expand Up @@ -60,7 +59,7 @@ jobs:
# master or snapshot
echo "Github Ref is $GITHUB_REF"
echo "VERSION=$PACKAGE_VERSION" >> $GITHUB_ENV
if [ $SNAPSHOT ]
if [ $GITHUB_REF == 'refs/heads/development' ]
then
echo "VERSION=$PACKAGE_VERSION-snapshot+${{ github.run_number}}" >> $GITHUB_ENV
fi
Expand Down

0 comments on commit 1c16df2

Please sign in to comment.