Use workflow_run to run main after update-wit instead
This commit is contained in:
parent
7214e0303d
commit
a0124e303e
10
.github/workflows/main.yml
vendored
10
.github/workflows/main.yml
vendored
@ -1,5 +1,13 @@
|
||||
name: Main
|
||||
on: [push, pull_request, workflow_dispatch, workflow_call]
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
workflow_run:
|
||||
types:
|
||||
- completed
|
||||
workflows:
|
||||
- "Update WIT"
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
6
.github/workflows/update-wit.yml
vendored
6
.github/workflows/update-wit.yml
vendored
@ -4,7 +4,6 @@ on:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
update-wit:
|
||||
@ -38,8 +37,3 @@ jobs:
|
||||
git add wit
|
||||
git commit -m "Sync to Pumpkin-MC/pumpkin-plugin-wit@${witCommit}"
|
||||
git push
|
||||
|
||||
main:
|
||||
name: Build, test, and release
|
||||
needs: update-wit
|
||||
uses: ./.github/workflows/main.yml
|
||||
|
||||
Loading…
Reference in New Issue
Block a user