From 211853bfec0844c6ce9b3f16134ad35ac9d4f880 Mon Sep 17 00:00:00 2001 From: scb261 <65343233+scb261@users.noreply.github.com> Date: Sun, 9 Mar 2025 13:20:11 +0200 Subject: [PATCH] Create post release workflow --- .github/workflows/post_release.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/post_release.yml diff --git a/.github/workflows/post_release.yml b/.github/workflows/post_release.yml new file mode 100644 index 0000000..b659804 --- /dev/null +++ b/.github/workflows/post_release.yml @@ -0,0 +1,20 @@ +name: Post release + +on: + release: + types: [published] + +jobs: + post_release: + runs-on: 'ubuntu-24.04' + + steps: + - name: Update website + run: | + curl --fail -L \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${{ secrets.MIHON_BOT_TOKEN }}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/mihonapp/website/dispatches \ + -d '{"event_type":"app_release"}'