github.com/metacubex/mihomo@v1.18.5/.github/workflows/trigger-cmfa-update.yml (about)

     1  name: Trigger CMFA Update
     2  on:
     3    workflow_dispatch:
     4    push:
     5      paths-ignore:
     6        - "docs/**"
     7        - "README.md"
     8        - ".github/ISSUE_TEMPLATE/**"
     9      branches:
    10        - Alpha
    11      tags:
    12        - "v*"
    13    pull_request_target:
    14      branches:
    15        - Alpha
    16        
    17  jobs:
    18    # Send "core-updated" to MetaCubeX/ClashMetaForAndroid to trigger update-dependencies
    19    trigger-CMFA-update:
    20      runs-on: ubuntu-latest
    21      steps:
    22        - uses: tibdex/github-app-token@v1
    23          id: generate-token
    24          with:
    25            app_id: ${{ secrets.MAINTAINER_APPID }}
    26            private_key: ${{ secrets.MAINTAINER_APP_PRIVATE_KEY }}
    27        
    28        - name: Trigger update-dependencies
    29          run: |
    30            curl -X POST https://api.github.com/repos/MetaCubeX/ClashMetaForAndroid/dispatches \
    31              -H "Accept: application/vnd.github.everest-preview+json" \
    32              -H "Authorization: token ${{ steps.generate-token.outputs.token }}" \
    33              -d '{"event_type": "core-updated"}'