From a0124e303e512b6c6e58e147c2a6fef16e8e43da Mon Sep 17 00:00:00 2001 From: Demetrius Kanios Date: Mon, 3 Aug 2026 17:59:18 -0700 Subject: [PATCH] Use `workflow_run` to run `main` after `update-wit` instead --- .github/workflows/main.yml | 10 +++++++++- .github/workflows/update-wit.yml | 6 ------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ccdde29..8483863 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/.github/workflows/update-wit.yml b/.github/workflows/update-wit.yml index 2abd55e..cd8ce09 100644 --- a/.github/workflows/update-wit.yml +++ b/.github/workflows/update-wit.yml @@ -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