mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 14:23:44 +08:00
feat: add trigger updater workflow to GitHub actions for release and alpha workflows
This commit is contained in:
parent
3ca4ac2726
commit
ff8426d95e
21
.github/workflows/alpha.yml
vendored
21
.github/workflows/alpha.yml
vendored
@ -410,3 +410,24 @@ jobs:
|
|||||||
prerelease: true
|
prerelease: true
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
generate_release_notes: true
|
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 }}"}'
|
||||||
|
21
.github/workflows/release.yml
vendored
21
.github/workflows/release.yml
vendored
@ -372,3 +372,24 @@ jobs:
|
|||||||
release-tag: v${{env.VERSION}}
|
release-tag: v${{env.VERSION}}
|
||||||
installers-regex: '_(arm64|x64|x86)-setup\.exe$'
|
installers-regex: '_(arm64|x64|x86)-setup\.exe$'
|
||||||
token: ${{ secrets.WINGET_TOKEN }}
|
token: ${{ secrets.WINGET_TOKEN }}
|
||||||
|
|
||||||
|
trigger_updater:
|
||||||
|
name: Trigger Updater Workflow
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
[
|
||||||
|
release,
|
||||||
|
release-for-linux-arm,
|
||||||
|
release-for-fixed-webview2,
|
||||||
|
release-update,
|
||||||
|
release-update-for-fixed-webview2,
|
||||||
|
submit-to-winget,
|
||||||
|
]
|
||||||
|
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 }}"}'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user