From 4ba1101469b52f5d87177bbd2426d5dad41faa04 Mon Sep 17 00:00:00 2001 From: Alexander01998 Date: Sat, 4 Jan 2025 14:24:11 +0100 Subject: [PATCH] Make sure automated commits from other workflows will trigger a rebuild --- .github/workflows/add_wurst_port.yml | 8 ++++++++ .github/workflows/announce_wurst_update.yml | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/.github/workflows/add_wurst_port.yml b/.github/workflows/add_wurst_port.yml index b2aa9ea4..f1b64ca5 100644 --- a/.github/workflows/add_wurst_port.yml +++ b/.github/workflows/add_wurst_port.yml @@ -25,6 +25,8 @@ on: permissions: # To push the automated commit. contents: write + # To trigger the Jekyll workflow. + actions: write jobs: @@ -54,6 +56,12 @@ jobs: git add . git commit -m "[Wurst-Bot] Port Wurst ${{ github.event.inputs.wurst_version }} to Minecraft ${{ github.event.inputs.mc_version }}" git push + # For some reason the commit above doesn't automatically trigger the + # Jekyll workflow, so we need to explicitly start it here. + - name: Trigger Jekyll workflow + env: + GH_TOKEN: ${{ github.token }} + run: gh workflow run jekyll.yml announce: runs-on: ubuntu-latest diff --git a/.github/workflows/announce_wurst_update.yml b/.github/workflows/announce_wurst_update.yml index f176730a..f960e988 100644 --- a/.github/workflows/announce_wurst_update.yml +++ b/.github/workflows/announce_wurst_update.yml @@ -11,6 +11,8 @@ on: permissions: # To push the automated commit. contents: write + # To trigger the Jekyll workflow. + actions: write jobs: announce: @@ -50,3 +52,10 @@ jobs: git add . git commit -m "[Wurst-Bot] Link Wurst ${{ github.event.inputs.wurst_version }} post to WF thread ${{ steps.announce.outputs.discussion_id }}" git push + + # For some reason the commit above doesn't automatically trigger the + # Jekyll workflow, so we need to explicitly start it here. + - name: Trigger Jekyll workflow + env: + GH_TOKEN: ${{ github.token }} + run: gh workflow run jekyll.yml