Skip to content

Commit

Permalink
feat: set BUILD_NUMBER, 2nd try
Browse files Browse the repository at this point in the history
  • Loading branch information
iGabyTM authored Jun 23, 2024
1 parent 286926f commit 3036b32
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,18 @@ jobs:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Add SHORT_SHA env property with commit short sha
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV

- name: Build with Gradle Wrapper
run: ./gradlew shadowJar

- name: Set BUILD_NUMBER
run: echo "BUILD_NUMBER=PR-${{ github.event.number }}-${{ github.sha }}" >> $GITHUB_ENV
env:
BUILD_NUMBER: 'PR-${{ github.event.number }}-${{ env.SHORT_SHA }}'

- name: Upload build
uses: actions/upload-artifact@v4.3.3
with:
name: 'DeluxeMenus build PR-${{ github.event.number }} (commit ${{ github.sha }})'
name: 'DeluxeMenus build PR-${{ github.event.number }}-commit ${{ env.SHORT_SHA }}'
path: build/libs

# NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html).
Expand Down

0 comments on commit 3036b32

Please sign in to comment.