Skip to content

Commit

Permalink
Set version based on hash for dev builds
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoxkk0 committed Aug 7, 2023
1 parent 6262c04 commit d171ec2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/staging-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
java-version: '17'
distribution: 'temurin'

- name: Enforce gradle permission
run: chmod 777 ./gradlew

- name: Show debug info
run: ./gradlew --version

Expand All @@ -35,6 +38,9 @@ jobs:
id: short_sha
run: echo "::set-output name=sha::$(expr substr ${{ github.sha }} 1 7)"

- name: Set version based on generated hash
run: export VERSION=dev-${{ steps.short_sha.outputs.sha }}

- name: Create Release
uses: softprops/action-gh-release@v1
with:
Expand Down

0 comments on commit d171ec2

Please sign in to comment.