From ec782829f322a1842a99afb67100873485c9b314 Mon Sep 17 00:00:00 2001 From: Luke Bemish Date: Sat, 18 Nov 2023 03:18:56 +0000 Subject: [PATCH] Fix PR and snapshot versioning --- .github/workflows/build_pr.yml | 6 ++++++ .github/workflows/snapshot.yml | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/build_pr.yml b/.github/workflows/build_pr.yml index 3965144..a13c28f 100644 --- a/.github/workflows/build_pr.yml +++ b/.github/workflows/build_pr.yml @@ -20,9 +20,13 @@ jobs: id: build run: | ./gradlew build + env: + PR_NUMBER: ${{ github.event.pull_request.number }} - name: Publish run: | ./gradlew publish + env: + PR_NUMBER: ${{ github.event.pull_request.number }} - name: Archive publishable artifacts uses: actions/upload-artifact@v3 with: @@ -32,6 +36,8 @@ jobs: - name: Test run: | ./gradlew test + env: + PR_NUMBER: ${{ github.event.pull_request.number }} - name: Upload Test Report uses: actions/upload-artifact@v3 if: (success() || failure()) && steps.build.conclusion == 'success' diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index caf1338..9a6fe87 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -21,6 +21,8 @@ jobs: id: build run: | ./gradlew build + env: + SNAPSHOT_MAVEN_URL: https://maven.lukebemish.dev/snapshots/ - name: Publish run: | ./gradlew publish @@ -33,6 +35,8 @@ jobs: - name: Test run: | ./gradlew test + env: + SNAPSHOT_MAVEN_URL: https://maven.lukebemish.dev/snapshots/ - name: Upload Test Report uses: actions/upload-artifact@v3 if: (success() || failure()) && steps.build.conclusion == 'success'