mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-21 11:38:42 +08:00
feat: add trigger updater workflow to GitHub actions for release and alpha workflows
This commit is contained in:
1 parent
1c58816c73
commit
aaefc5b479
2 files changed
+42
No files matched your search
@@ -410,3 +410,24 @@ jobs:
|
||||
prerelease: true
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
generate_release_notes: true
|
||||
|
||||
trigger_updater:
|
||||
name: Trigger Updater Workflow
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
[
|
||||
check_commit,
|
||||
alpha,
|
||||
alpha-for-linux-arm,
|
||||
alpha-for-fixed-webview2,
|
||||
update_tag,
|
||||
]
|
||||
if: ${{ needs.check_commit.outputs.should_run == 'true' }}
|
||||
steps:
|
||||
- name: Trigger Updater Workflow
|
||||
run: |
|
||||
curl -X POST \
|
||||
-H "Authorization: token ${{ secrets.PAT_TOKEN }}" \
|
||||
-H "Accept: application/vnd.github.v3+json" \
|
||||
https://api.github.com/repos/${{ github.repository }}/actions/workflows/updater.yml/dispatches \
|
||||
-d '{"ref":"${{ github.ref }}"}'
|
||||
Reference in new issue
Block a user