From cb4c7e2a2ecccb516ed4ca62eb08263d18091dbe Mon Sep 17 00:00:00 2001 From: Yasin Date: Sun, 19 Nov 2023 02:33:45 +0100 Subject: trigger modpack (#424) this will trigger the update script on modpack repo --- .github/workflows/buildrelease.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/buildrelease.yml b/.github/workflows/buildrelease.yml index fde5785b..4a15fe57 100644 --- a/.github/workflows/buildrelease.yml +++ b/.github/workflows/buildrelease.yml @@ -138,4 +138,9 @@ jobs: https://hysky.de/" - curl -H "Content-Type: application/json" -d '{"content":"'"${OUTPUT//$'\n'/\\n}"'", "flags": 4}' "${{ secrets.DISCORD_WEBHOOK }}" \ No newline at end of file + curl -H "Content-Type: application/json" -d '{"content":"'"${OUTPUT//$'\n'/\\n}"'", "flags": 4}' "${{ secrets.DISCORD_WEBHOOK }}" + + - name: Trigger Modpack + shell: bash + run: | + curl -X POST -H "Authorization:Bearer ${{secrets.MODPACK_TOKEN}}" -H "X-GitHub-Api-Version:2022-11-28" https://api.github.com/repos/SkyblockerMod/Skyblocker-modpack/actions/workflows/update.yml/dispatches --data '{"ref":"main"}' -- cgit