From 363183e86c11775ed6f332cbb64230f55bfb0793 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 15 Jan 2025 08:55:13 +0000 Subject: [PATCH 01/14] Bump com.diffplug.spotless from 7.0.1 to 7.0.2 Bumps com.diffplug.spotless from 7.0.1 to 7.0.2. --- updated-dependencies: - dependency-name: com.diffplug.spotless dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index c738777..b964dc6 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ buildscript { plugins { id "fabric-loom" version "1.9-SNAPSHOT" id "me.modmuss50.mod-publish-plugin" version "0.8.4" - id "com.diffplug.spotless" version "7.0.1" + id "com.diffplug.spotless" version "7.0.2" } def ENV = System.getenv() From ac2e8fc5c740c9666128653a921eda46a60b6aa7 Mon Sep 17 00:00:00 2001 From: Alexander01998 Date: Wed, 15 Jan 2025 15:18:41 +0100 Subject: [PATCH 02/14] Update dependabot.yml --- .github/dependabot.yml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b9dbf06..126d46f 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,17 +1,18 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: +# Dependabot version updates, see: # https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file version: 2 updates: - - package-ecosystem: "gradle" - directory: "/" - schedule: - interval: "daily" - - - package-ecosystem: "github-actions" - # Directory should be `/` instead of `/.github/workflows` according to the docs. - directory: "/" - schedule: - interval: "daily" +- package-ecosystem: "gradle" + directory: "/" + schedule: + interval: "daily" + time: "06:00" + timezone: "Europe/Berlin" +- package-ecosystem: "github-actions" + # Directory should be `/` instead of `/.github/workflows` according to the docs. + directory: "/" + schedule: + interval: "daily" + time: "06:00" + timezone: "Europe/Berlin" From f343b842fdb136e8bd746388c72eb3d015eb5b88 Mon Sep 17 00:00:00 2001 From: Alexander01998 Date: Mon, 20 Jan 2025 22:18:23 +0100 Subject: [PATCH 03/14] Move "permissions" after "on" to be consistent with other workflows --- .github/workflows/publish.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9cb634f..a13377e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,12 +1,6 @@ name: Publish Release run-name: "Publish release from ${{ github.ref_name }} branch" -permissions: - # Needed to push the tag. - contents: write - # Needed to close the milestone. - issues: write - on: workflow_dispatch: inputs: @@ -44,6 +38,12 @@ on: description: "Automatically set by the return-dispatch action (leave blank if running manually)" required: false +permissions: + # Needed to push the tag. + contents: write + # Needed to close the milestone. + issues: write + jobs: publish: runs-on: ubuntu-latest From 7cbea5b9846e0f922a558d37cd562230de8837d8 Mon Sep 17 00:00:00 2001 From: Alexander01998 Date: Tue, 21 Jan 2025 00:10:37 +0100 Subject: [PATCH 04/14] Add basic multi_publish workflow --- .github/workflows/multi_publish.yml | 76 +++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 .github/workflows/multi_publish.yml diff --git a/.github/workflows/multi_publish.yml b/.github/workflows/multi_publish.yml new file mode 100644 index 0000000..c45f2e5 --- /dev/null +++ b/.github/workflows/multi_publish.yml @@ -0,0 +1,76 @@ +name: Publish Multiple Releases + +on: + workflow_dispatch: + inputs: + branches: + description: "Space-separated list of branches to publish from" + required: true + type: string + # TODO: Maybe also get the mod_version in each branch and verify that it's as expected before publishing? + # mod_version: + # description: "Expected mod version" + # required: true + # type: string + +permissions: + # Needed to trigger the publish workflow. + actions: write + +jobs: + + prepare: + runs-on: ubuntu-latest + outputs: + branches: ${{ steps.set_branches.outputs.branches }} + steps: + - name: Convert branches input to JSON array + id: set_branches + run: | + JSON_ARRAY=$(echo "[\"$(echo ${{ inputs.branches }} | tr ' ' '\",\"')\"]") + echo "branches=$JSON_ARRAY" >> "$GITHUB_OUTPUT" + + publish_each: + runs-on: ubuntu-latest + needs: prepare + strategy: + max-parallel: 1 + fail-fast: true + matrix: + branch: ${{ fromJson(needs.prepare.outputs.branches) }} + steps: + - name: Build publish inputs + id: publish_inputs + run: | + JSON_STRING=$(cat << EOF + { + "close_milestone": "true", + "upload_backups": "true", + "publish_github": "true", + "publish_curseforge": "true", + "publish_modrinth": "true", + "update_website": "true" + } + EOF + ) + # Convert to single line and escape quotes + echo "json=${JSON_STRING//$'\n'/}" >> "$GITHUB_OUTPUT" + - name: Trigger publish workflow + id: publish_dispatch + uses: codex-/return-dispatch@v2 + with: + token: ${{ github.token }} + owner: Wurst-Imperium + repo: Mo-Glass + ref: ${{ matrix.branch }} + workflow: publish.yml + workflow_inputs: ${{ steps.publish_inputs.outputs.json }} + - name: Wait for publish workflow to finish (run ${{ steps.publish_dispatch.outputs.run_id }}) + uses: codex-/await-remote-run@v1 + with: + token: ${{ github.token }} + owner: Wurst-Imperium + repo: Mo-Glass + run_id: ${{ steps.publish_dispatch.outputs.run_id }} + run_timeout_seconds: 600 # 10 minutes + # TODO: Get the mc_version and modloader from each branch, then use them to start the announcement workflow From bbbea6f7e7d34d5ca8c7bb3bd7bc340a5bde8ff5 Mon Sep 17 00:00:00 2001 From: Alexander01998 Date: Wed, 22 Jan 2025 06:54:31 +0100 Subject: [PATCH 05/14] Add option for multi_publish workflow to trigger announce_mod_ports when done --- .github/workflows/multi_publish.yml | 65 ++++++++++++++++++++++++++--- 1 file changed, 59 insertions(+), 6 deletions(-) diff --git a/.github/workflows/multi_publish.yml b/.github/workflows/multi_publish.yml index c45f2e5..9845a29 100644 --- a/.github/workflows/multi_publish.yml +++ b/.github/workflows/multi_publish.yml @@ -3,15 +3,24 @@ name: Publish Multiple Releases on: workflow_dispatch: inputs: + mod_version: + description: "Mod version (without v or -MC)" + required: true + type: string branches: description: "Space-separated list of branches to publish from" required: true type: string - # TODO: Maybe also get the mod_version in each branch and verify that it's as expected before publishing? - # mod_version: - # description: "Expected mod version" - # required: true - # type: string + announce_ports: + description: "Announce as ports on WurstForum" + required: true + type: boolean + default: false + dry_run: + description: "Dry-run mode (don't actually publish anything)" + required: false + type: boolean + default: false permissions: # Needed to trigger the publish workflow. @@ -33,11 +42,18 @@ jobs: publish_each: runs-on: ubuntu-latest needs: prepare + if: ${{ inputs.dry_run == 'false' }} strategy: + # Each job pushes an automated commit to wimods.net@master, so running them all in parallel + # would likely cause conflicts. Also, various servers might hit rate limits if we just upload + # all of the files at once. max-parallel: 1 + # If something goes wrong, all published files have to be manually deleted. + # Best to fail as early as possible. fail-fast: true matrix: branch: ${{ fromJson(needs.prepare.outputs.branches) }} + # TODO: Maybe also verify that the mod_version in each branch is as expected before publishing? steps: - name: Build publish inputs id: publish_inputs @@ -73,4 +89,41 @@ jobs: repo: Mo-Glass run_id: ${{ steps.publish_dispatch.outputs.run_id }} run_timeout_seconds: 600 # 10 minutes - # TODO: Get the mc_version and modloader from each branch, then use them to start the announcement workflow + + announce: + runs-on: ubuntu-latest + needs: publish_each + if: ${{ inputs.announce_ports }} + steps: + - name: Build announcement inputs + id: announce_inputs + run: | + JSON_STRING=$(cat << EOF + { + "mod": "mo-glass", + "mod_version": "${{ inputs.mod_version }}", + "branches": "${{ inputs.branches }}", + "dry_run": "${{ inputs.dry_run }}" + } + EOF + ) + # Convert to single line and escape quotes + echo "json=${JSON_STRING//$'\n'/}" >> "$GITHUB_OUTPUT" + - name: Trigger announce workflow + id: announce_dispatch + uses: codex-/return-dispatch@v2 + with: + token: ${{ secrets.WIMODS_NET_PUBLISH_TOKEN }} + owner: Wurst-Imperium + repo: wimods.net + ref: master + workflow: announce_mod_ports.yml + workflow_inputs: ${{ steps.announce_inputs.outputs.json }} + - name: Wait for announce workflow to finish (run ${{ steps.announce_dispatch.outputs.run_id }}) + uses: codex-/await-remote-run@v1 + with: + token: ${{ secrets.WIMODS_NET_PUBLISH_TOKEN }} + owner: Wurst-Imperium + repo: wimods.net + run_id: ${{ steps.announce_dispatch.outputs.run_id }} + run_timeout_seconds: 600 # 10 minutes From f3e935bd267d0c0e0172294ceeeb7964c0c1042a Mon Sep 17 00:00:00 2001 From: Alexander01998 Date: Wed, 22 Jan 2025 09:22:15 +0100 Subject: [PATCH 06/14] Add run-name --- .github/workflows/multi_publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/multi_publish.yml b/.github/workflows/multi_publish.yml index 9845a29..c983162 100644 --- a/.github/workflows/multi_publish.yml +++ b/.github/workflows/multi_publish.yml @@ -1,4 +1,5 @@ name: Publish Multiple Releases +run-name: Publish v${{ github.event.inputs.mod_version }} build(s) from ${{ github.event.inputs.branches }} on: workflow_dispatch: From ceb2a9562340dc0efadb35f7490cc29a31c98992 Mon Sep 17 00:00:00 2001 From: Alexander01998 Date: Wed, 22 Jan 2025 09:39:16 +0100 Subject: [PATCH 07/14] Try to fix announce job getting skipped in dry-run mode --- .github/workflows/multi_publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/multi_publish.yml b/.github/workflows/multi_publish.yml index c983162..0cf6c99 100644 --- a/.github/workflows/multi_publish.yml +++ b/.github/workflows/multi_publish.yml @@ -93,8 +93,8 @@ jobs: announce: runs-on: ubuntu-latest - needs: publish_each - if: ${{ inputs.announce_ports }} + needs: [prepare, publish_each] + if: ${{ !failure() && !cancelled() && inputs.announce_ports }} steps: - name: Build announcement inputs id: announce_inputs From 6663c871e26f6ddb56e02e8299def40cfcce1786 Mon Sep 17 00:00:00 2001 From: Alexander01998 Date: Wed, 22 Jan 2025 14:20:59 +0100 Subject: [PATCH 08/14] Debug if the branches array is working correctly --- .github/workflows/multi_publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/multi_publish.yml b/.github/workflows/multi_publish.yml index 0cf6c99..264a69a 100644 --- a/.github/workflows/multi_publish.yml +++ b/.github/workflows/multi_publish.yml @@ -39,6 +39,7 @@ jobs: run: | JSON_ARRAY=$(echo "[\"$(echo ${{ inputs.branches }} | tr ' ' '\",\"')\"]") echo "branches=$JSON_ARRAY" >> "$GITHUB_OUTPUT" + echo "Branches: $JSON_ARRAY" >> "$GITHUB_STEP_SUMMARY" publish_each: runs-on: ubuntu-latest From 0c50279696ed5bbc469830fc16ef30b96dd48c74 Mon Sep 17 00:00:00 2001 From: Alexander01998 Date: Wed, 22 Jan 2025 14:25:36 +0100 Subject: [PATCH 09/14] Debug if the dry_run input is seen as a string or a boolean --- .github/workflows/multi_publish.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/multi_publish.yml b/.github/workflows/multi_publish.yml index 264a69a..e20def8 100644 --- a/.github/workflows/multi_publish.yml +++ b/.github/workflows/multi_publish.yml @@ -40,6 +40,10 @@ jobs: JSON_ARRAY=$(echo "[\"$(echo ${{ inputs.branches }} | tr ' ' '\",\"')\"]") echo "branches=$JSON_ARRAY" >> "$GITHUB_OUTPUT" echo "Branches: $JSON_ARRAY" >> "$GITHUB_STEP_SUMMARY" + echo "`dry_run`: ${{ inputs.dry_run }}" >> "$GITHUB_STEP_SUMMARY" + echo "`!dry_run`: ${{ !inputs.dry_run }}" >> "$GITHUB_STEP_SUMMARY" + echo "`dry_run=='true'`: ${{ inputs.dry_run == 'true' }}" >> "$GITHUB_STEP_SUMMARY" + echo "`dry_run=='false'`: ${{ inputs.dry_run == 'false' }}" >> "$GITHUB_STEP_SUMMARY" publish_each: runs-on: ubuntu-latest From eb4f7aa214954e27e504d56ee0b9f21b27e57528 Mon Sep 17 00:00:00 2001 From: Alexander01998 Date: Wed, 22 Jan 2025 14:28:05 +0100 Subject: [PATCH 10/14] Escape the backticks --- .github/workflows/multi_publish.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/multi_publish.yml b/.github/workflows/multi_publish.yml index e20def8..40b08e9 100644 --- a/.github/workflows/multi_publish.yml +++ b/.github/workflows/multi_publish.yml @@ -40,10 +40,10 @@ jobs: JSON_ARRAY=$(echo "[\"$(echo ${{ inputs.branches }} | tr ' ' '\",\"')\"]") echo "branches=$JSON_ARRAY" >> "$GITHUB_OUTPUT" echo "Branches: $JSON_ARRAY" >> "$GITHUB_STEP_SUMMARY" - echo "`dry_run`: ${{ inputs.dry_run }}" >> "$GITHUB_STEP_SUMMARY" - echo "`!dry_run`: ${{ !inputs.dry_run }}" >> "$GITHUB_STEP_SUMMARY" - echo "`dry_run=='true'`: ${{ inputs.dry_run == 'true' }}" >> "$GITHUB_STEP_SUMMARY" - echo "`dry_run=='false'`: ${{ inputs.dry_run == 'false' }}" >> "$GITHUB_STEP_SUMMARY" + echo "\`dry_run\`: ${{ inputs.dry_run }}" >> "$GITHUB_STEP_SUMMARY" + echo "\`!dry_run\`: ${{ !inputs.dry_run }}" >> "$GITHUB_STEP_SUMMARY" + echo "\`dry_run=='true'\`: ${{ inputs.dry_run == 'true' }}" >> "$GITHUB_STEP_SUMMARY" + echo "\`dry_run=='false'\`: ${{ inputs.dry_run == 'false' }}" >> "$GITHUB_STEP_SUMMARY" publish_each: runs-on: ubuntu-latest From 53e1499a9763c8c5c72b067d0ce026cdb7b4a5d2 Mon Sep 17 00:00:00 2001 From: Alexander01998 Date: Wed, 22 Jan 2025 14:45:12 +0100 Subject: [PATCH 11/14] Try !! syntax to convert the sometimes-a-string input to boolean --- .github/workflows/multi_publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/multi_publish.yml b/.github/workflows/multi_publish.yml index 40b08e9..9e595f1 100644 --- a/.github/workflows/multi_publish.yml +++ b/.github/workflows/multi_publish.yml @@ -42,6 +42,7 @@ jobs: echo "Branches: $JSON_ARRAY" >> "$GITHUB_STEP_SUMMARY" echo "\`dry_run\`: ${{ inputs.dry_run }}" >> "$GITHUB_STEP_SUMMARY" echo "\`!dry_run\`: ${{ !inputs.dry_run }}" >> "$GITHUB_STEP_SUMMARY" + echo "\`!!dry_run\`: ${{ !!inputs.dry_run }}" >> "$GITHUB_STEP_SUMMARY" echo "\`dry_run=='true'\`: ${{ inputs.dry_run == 'true' }}" >> "$GITHUB_STEP_SUMMARY" echo "\`dry_run=='false'\`: ${{ inputs.dry_run == 'false' }}" >> "$GITHUB_STEP_SUMMARY" From 3496f616bb74c6ac2fa68912595239aa7cb40d69 Mon Sep 17 00:00:00 2001 From: Alexander01998 Date: Wed, 22 Jan 2025 14:54:34 +0100 Subject: [PATCH 12/14] Try fromJson() syntax to convert the sometimes-a-string input to boolean --- .github/workflows/multi_publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/multi_publish.yml b/.github/workflows/multi_publish.yml index 9e595f1..bd1ee32 100644 --- a/.github/workflows/multi_publish.yml +++ b/.github/workflows/multi_publish.yml @@ -42,9 +42,9 @@ jobs: echo "Branches: $JSON_ARRAY" >> "$GITHUB_STEP_SUMMARY" echo "\`dry_run\`: ${{ inputs.dry_run }}" >> "$GITHUB_STEP_SUMMARY" echo "\`!dry_run\`: ${{ !inputs.dry_run }}" >> "$GITHUB_STEP_SUMMARY" - echo "\`!!dry_run\`: ${{ !!inputs.dry_run }}" >> "$GITHUB_STEP_SUMMARY" echo "\`dry_run=='true'\`: ${{ inputs.dry_run == 'true' }}" >> "$GITHUB_STEP_SUMMARY" echo "\`dry_run=='false'\`: ${{ inputs.dry_run == 'false' }}" >> "$GITHUB_STEP_SUMMARY" + echo "\`fromJson(dry_run)\`: ${{ fromJson(inputs.dry_run) }}" >> "$GITHUB_STEP_SUMMARY" publish_each: runs-on: ubuntu-latest From af878c6f024f2cd37507bf6d0f5acacb4f19517a Mon Sep 17 00:00:00 2001 From: Alexander01998 Date: Wed, 22 Jan 2025 14:59:50 +0100 Subject: [PATCH 13/14] Double-check that fromJson() syntax is working --- .github/workflows/multi_publish.yml | 42 ++++++++++++++--------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/.github/workflows/multi_publish.yml b/.github/workflows/multi_publish.yml index bd1ee32..dfdce28 100644 --- a/.github/workflows/multi_publish.yml +++ b/.github/workflows/multi_publish.yml @@ -41,15 +41,13 @@ jobs: echo "branches=$JSON_ARRAY" >> "$GITHUB_OUTPUT" echo "Branches: $JSON_ARRAY" >> "$GITHUB_STEP_SUMMARY" echo "\`dry_run\`: ${{ inputs.dry_run }}" >> "$GITHUB_STEP_SUMMARY" - echo "\`!dry_run\`: ${{ !inputs.dry_run }}" >> "$GITHUB_STEP_SUMMARY" - echo "\`dry_run=='true'\`: ${{ inputs.dry_run == 'true' }}" >> "$GITHUB_STEP_SUMMARY" - echo "\`dry_run=='false'\`: ${{ inputs.dry_run == 'false' }}" >> "$GITHUB_STEP_SUMMARY" echo "\`fromJson(dry_run)\`: ${{ fromJson(inputs.dry_run) }}" >> "$GITHUB_STEP_SUMMARY" + echo "\`!fromJson(dry_run)\`: ${{ !fromJson(inputs.dry_run) }}" >> "$GITHUB_STEP_SUMMARY" publish_each: runs-on: ubuntu-latest needs: prepare - if: ${{ inputs.dry_run == 'false' }} + if: ${{ !fromJson(inputs.dry_run) }} strategy: # Each job pushes an automated commit to wimods.net@master, so running them all in parallel # would likely cause conflicts. Also, various servers might hit rate limits if we just upload @@ -78,24 +76,24 @@ jobs: ) # Convert to single line and escape quotes echo "json=${JSON_STRING//$'\n'/}" >> "$GITHUB_OUTPUT" - - name: Trigger publish workflow - id: publish_dispatch - uses: codex-/return-dispatch@v2 - with: - token: ${{ github.token }} - owner: Wurst-Imperium - repo: Mo-Glass - ref: ${{ matrix.branch }} - workflow: publish.yml - workflow_inputs: ${{ steps.publish_inputs.outputs.json }} - - name: Wait for publish workflow to finish (run ${{ steps.publish_dispatch.outputs.run_id }}) - uses: codex-/await-remote-run@v1 - with: - token: ${{ github.token }} - owner: Wurst-Imperium - repo: Mo-Glass - run_id: ${{ steps.publish_dispatch.outputs.run_id }} - run_timeout_seconds: 600 # 10 minutes + # - name: Trigger publish workflow + # id: publish_dispatch + # uses: codex-/return-dispatch@v2 + # with: + # token: ${{ github.token }} + # owner: Wurst-Imperium + # repo: Mo-Glass + # ref: ${{ matrix.branch }} + # workflow: publish.yml + # workflow_inputs: ${{ steps.publish_inputs.outputs.json }} + # - name: Wait for publish workflow to finish (run ${{ steps.publish_dispatch.outputs.run_id }}) + # uses: codex-/await-remote-run@v1 + # with: + # token: ${{ github.token }} + # owner: Wurst-Imperium + # repo: Mo-Glass + # run_id: ${{ steps.publish_dispatch.outputs.run_id }} + # run_timeout_seconds: 600 # 10 minutes announce: runs-on: ubuntu-latest From d95e86f4c5fc39f754f144f29ffaad21c4f5f216 Mon Sep 17 00:00:00 2001 From: Alexander01998 Date: Wed, 22 Jan 2025 15:01:55 +0100 Subject: [PATCH 14/14] Remove temporary debugging code --- .github/workflows/multi_publish.yml | 39 +++++++++++++---------------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/.github/workflows/multi_publish.yml b/.github/workflows/multi_publish.yml index dfdce28..c15be13 100644 --- a/.github/workflows/multi_publish.yml +++ b/.github/workflows/multi_publish.yml @@ -40,9 +40,6 @@ jobs: JSON_ARRAY=$(echo "[\"$(echo ${{ inputs.branches }} | tr ' ' '\",\"')\"]") echo "branches=$JSON_ARRAY" >> "$GITHUB_OUTPUT" echo "Branches: $JSON_ARRAY" >> "$GITHUB_STEP_SUMMARY" - echo "\`dry_run\`: ${{ inputs.dry_run }}" >> "$GITHUB_STEP_SUMMARY" - echo "\`fromJson(dry_run)\`: ${{ fromJson(inputs.dry_run) }}" >> "$GITHUB_STEP_SUMMARY" - echo "\`!fromJson(dry_run)\`: ${{ !fromJson(inputs.dry_run) }}" >> "$GITHUB_STEP_SUMMARY" publish_each: runs-on: ubuntu-latest @@ -76,24 +73,24 @@ jobs: ) # Convert to single line and escape quotes echo "json=${JSON_STRING//$'\n'/}" >> "$GITHUB_OUTPUT" - # - name: Trigger publish workflow - # id: publish_dispatch - # uses: codex-/return-dispatch@v2 - # with: - # token: ${{ github.token }} - # owner: Wurst-Imperium - # repo: Mo-Glass - # ref: ${{ matrix.branch }} - # workflow: publish.yml - # workflow_inputs: ${{ steps.publish_inputs.outputs.json }} - # - name: Wait for publish workflow to finish (run ${{ steps.publish_dispatch.outputs.run_id }}) - # uses: codex-/await-remote-run@v1 - # with: - # token: ${{ github.token }} - # owner: Wurst-Imperium - # repo: Mo-Glass - # run_id: ${{ steps.publish_dispatch.outputs.run_id }} - # run_timeout_seconds: 600 # 10 minutes + - name: Trigger publish workflow + id: publish_dispatch + uses: codex-/return-dispatch@v2 + with: + token: ${{ github.token }} + owner: Wurst-Imperium + repo: Mo-Glass + ref: ${{ matrix.branch }} + workflow: publish.yml + workflow_inputs: ${{ steps.publish_inputs.outputs.json }} + - name: Wait for publish workflow to finish (run ${{ steps.publish_dispatch.outputs.run_id }}) + uses: codex-/await-remote-run@v1 + with: + token: ${{ github.token }} + owner: Wurst-Imperium + repo: Mo-Glass + run_id: ${{ steps.publish_dispatch.outputs.run_id }} + run_timeout_seconds: 600 # 10 minutes announce: runs-on: ubuntu-latest