Skip to content

Commit

Permalink
👷 Fix Github Actions deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
vinceglb committed Dec 1, 2024
1 parent 3b2c204 commit 540712b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish-snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Check for SNAPSHOT suffix
id: check_snapshot
run: |
VERSION_NAME=$(grep "^VERSION_NAME=" gradle.properties | cut -d '=' -f 2)
if [[ $VERSION_NAME == *-SNAPSHOT ]]; then
echo "::set-output name=is_snapshot::true"
echo "is_snapshot=true" >> $GITHUB_OUTPUT
else
echo "::set-output name=is_snapshot::false"
echo "is_snapshot=false" >> $GITHUB_OUTPUT
fi
publish:
Expand Down

0 comments on commit 540712b

Please sign in to comment.