Use workflow_run to run main after update-wit instead

This commit is contained in:
Demetrius Kanios 2026-08-03 17:58:20 -07:00
parent 9efb1ccb57
commit 5bdd9d86f2
2 changed files with 9 additions and 7 deletions

View File

@ -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

View File

@ -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