build: Fix PR build number
This commit is contained in:
parent
68c97f7ae6
commit
3b44ea218d
|
@ -18,12 +18,6 @@ jobs:
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
cache: gradle
|
cache: gradle
|
||||||
|
|
||||||
- name: Get PR number
|
|
||||||
id: pr
|
|
||||||
run: echo "::set-output name=pull_request_number::$(gh pr view --json number -q .number || echo "")"
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Validate Gradle wrapper
|
- name: Validate Gradle wrapper
|
||||||
uses: gradle/wrapper-validation-action@v1
|
uses: gradle/wrapper-validation-action@v1
|
||||||
|
|
||||||
|
@ -32,14 +26,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
arguments: build
|
arguments: build
|
||||||
env:
|
env:
|
||||||
GITHUB_VERSION: pr${{ steps.pr.outputs.pull_request_number }}
|
GITHUB_VERSION: pr${{ github.event.pull_request.number }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Staging artifact
|
|
||||||
run: mkdir staging && cp build/libs/*.jar staging
|
|
||||||
|
|
||||||
- name: Artifact output
|
- name: Artifact output
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: multiverse-core-pr${{ steps.pr.outputs.pull_request_number }}
|
name: multiverse-core-pr${{ github.event.pull_request.number }}
|
||||||
path: staging
|
path: build/libs/multiverse-core-pr${{ github.event.pull_request.number }}.jar
|
||||||
|
|
Loading…
Reference in New Issue