diff --git a/.github/workflows/weekly-update.yml b/.github/workflows/weekly-update.yml index 8e2d07044..8d2286b29 100644 --- a/.github/workflows/weekly-update.yml +++ b/.github/workflows/weekly-update.yml @@ -59,6 +59,7 @@ jobs: if: needs.check-updates.outputs.has-updates == 'true' && inputs.dry-run != true runs-on: ubuntu-latest permissions: + actions: write contents: write pull-requests: write steps: @@ -293,6 +294,17 @@ jobs: --head "$BRANCH_NAME" \ --base main + # Events triggered by GITHUB_TOKEN don't create new workflow runs, + # with the exception of workflow_dispatch and repository_dispatch. + # Use workflow_dispatch to trigger CI on the newly pushed branch. + - name: Trigger CI checks + if: steps.final.outputs.success == 'true' && steps.validate.outputs.valid == 'true' && steps.changes.outputs.has-changes == 'true' + env: + GH_TOKEN: ${{ github.token }} + BRANCH_NAME: ${{ steps.branch.outputs.branch }} + run: | + gh workflow run ci.yml --ref "$BRANCH_NAME" + - name: Add job summary if: steps.final.outputs.success == 'true' && steps.validate.outputs.valid == 'true' && steps.changes.outputs.has-changes == 'true' env: