Skip to content

Commit

Permalink
Merge pull request Multiverse#3117 from Multiverse/ben/pr-comment-art…
Browse files Browse the repository at this point in the history
…ifact

Comment build artifact in PR
  • Loading branch information
benwoo1110 authored Nov 21, 2024
2 parents 2f8d233 + 17d376d commit 5b3477a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/generic.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
type: string

jobs:
test:
test-and-artifact:
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -34,7 +34,17 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Artifact output
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.plugin_name }}-pr${{ github.event.pull_request.number }}
path: build/libs/${{ inputs.plugin_name }}-pr${{ github.event.pull_request.number }}.jar

comment-artifact:
needs: test-and-artifact
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: benwoo1110/artifact-comment-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5b3477a

Please sign in to comment.