feat: add trigger updater workflow to GitHub actions for release and alpha workflows

This commit is contained in:
Tunglies 2025-03-14 01:31:19 +08:00
parent 3ca4ac2726
commit ff8426d95e
2 changed files with 42 additions and 0 deletions

View File

@ -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 }}"}'

View File

@ -372,3 +372,24 @@ jobs:
release-tag: v${{env.VERSION}}
installers-regex: '_(arm64|x64|x86)-setup\.exe$'
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 }}"}'