Skip to content

Commit

Permalink
Move to the pr action instead of generic
Browse files Browse the repository at this point in the history
  • Loading branch information
benwoo1110 committed Oct 12, 2024
1 parent 8bed477 commit ff8cb73
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/generic.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
required: true
type: string

permissions:
pull-requests: write

jobs:
test:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -41,8 +38,3 @@ jobs:
with:
name: ${{ inputs.plugin_name }}-pr${{ github.event.pull_request.number }}
path: build/libs/${{ inputs.plugin_name }}-pr${{ github.event.pull_request.number }}.jar

- name: Comment Artifact
uses: PicoCentauri/[email protected]
with:
name: ${{ inputs.plugin_name }}-pr${{ github.event.pull_request.number }}
15 changes: 12 additions & 3 deletions .github/workflows/pr.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,17 @@ on:
pull_request:
types: [opened, synchronize]

permissions:
pull-requests: write

jobs:
test:
uses: ./.github/workflows/generic.test.yml
with:
plugin_name: multiverse-core
- name: Test
uses: ./.github/workflows/generic.test.yml
with:
plugin_name: multiverse-core

- name: Comment Artifact
uses: PicoCentauri/[email protected]
with:
name: ${{ inputs.plugin_name }}-pr${{ github.event.pull_request.number }}

0 comments on commit ff8cb73

Please sign in to comment.