From c0aaf453157853b90156ead5401e7e925670c24f Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Mon, 23 Oct 2023 00:27:37 +0800 Subject: [PATCH] chore: add CMFA auto update-dependencies trigger --- .../workflows/cmfa-update-deps-trigger.yml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/cmfa-update-deps-trigger.yml diff --git a/.github/workflows/cmfa-update-deps-trigger.yml b/.github/workflows/cmfa-update-deps-trigger.yml new file mode 100644 index 00000000..51736644 --- /dev/null +++ b/.github/workflows/cmfa-update-deps-trigger.yml @@ -0,0 +1,28 @@ +name: CMFA auto update-dependencies trigger +on: + workflow_dispatch: + push: + tags: + - "v*" + pull_request_target: + branches: + - Alpha + +jobs: + update-dependencies: + runs-on: ubuntu-latest + steps: + - uses: tibdex/github-app-token@v1 + id: generate-token + with: + app_id: ${{ secrets.MAINTAINER_APPID }} + private_key: ${{ secrets.MAINTAINER_APP_PRIVATE_KEY }} + + - name: Trigger update-dependencies + run: | + curl -X POST https://api.github.com/repos/MetaCubeX/ClashMetaForAndroid/dispatches \ + -H "Accept: application/vnd.github.everest-preview+json" \ + -H "Authorization: token ${{ steps.generate-token.outputs.token }}" \ + -d '{"event_type": "core-updated"}' + # Send "core-updated" to MetaCubeX/ClashMetaForAndroid to trigger update-dependencies + \ No newline at end of file