Skip to content

Commit

Permalink
Share the BUILD_ID definition
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolby committed Jul 12, 2023
1 parent f15d685 commit cf8de3c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@ jobs:
distribution: 'temurin'
java-version: '17'
- uses: gradle/gradle-build-action@v2
- run: |
osName="${RUNNER_OS,,}}"
[[ "$osName" == 'linux' ]] || osName="${osName:0:3}"
echo "BUILD_ID=$GITHUB_RUN_NUMBER.$osName" >> "$GITHUB_ENV"
shell: bash
- run: ./gradlew build
env:
BUILD_ID: ${{ github.run_number }}.${{ runner.os }}
- uses: actions/upload-artifact@v3
with:
name: all-build-outputs-${{ runner.os }}
name: build-outputs-${{ env.BUILD_ID }
path: app/build/outputs/
- uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit cf8de3c

Please sign in to comment.