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