diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6924df3..3785712 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,6 +2,7 @@ name: Main on: push: workflow_dispatch: + workflow_call: permissions: contents: write diff --git a/.github/workflows/update-wit.yml b/.github/workflows/update-wit.yml index 49640ca..2abd55e 100644 --- a/.github/workflows/update-wit.yml +++ b/.github/workflows/update-wit.yml @@ -4,11 +4,12 @@ on: permissions: contents: write + pull-requests: write jobs: update-wit: name: Update WIT - runs-on: ubuntu-latest + runs-on: ubuntu-slim steps: - name: Checkout uses: actions/checkout@v6 @@ -37,3 +38,8 @@ 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