diff --git a/.github/workflows/alpha.yml b/.github/workflows/alpha.yml index 6258de30..528a4689 100644 --- a/.github/workflows/alpha.yml +++ b/.github/workflows/alpha.yml @@ -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 }}"}' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4ad137ff..825fd750 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }}"}'