Skip to content

Commit

Permalink
Add repository dispatch command for testing weekly pulumi upgrade in …
Browse files Browse the repository at this point in the history
…PRs (#1314)

This change makes it easier to debug the weekly pulumi update by
allowing it to be dispatched
via the command run-pulumi-update.

The auto merge will be disabled for the automated upgrades. Otherwise
those commits will get merged into the PR branch
  • Loading branch information
flostadler authored Jun 17, 2024
1 parent 5673b22 commit 5cdb9a9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/command-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ jobs:
with:
token: ${{ secrets.PULUMI_BOT_TOKEN }}
reaction-token: ${{ secrets.GITHUB_TOKEN }}
commands: run-acceptance-tests
commands: |
run-acceptance-tests
run-pulumi-update
permission: write
issue-type: pull-request
repository: pulumi/pulumi-awsx
9 changes: 8 additions & 1 deletion .github/workflows/weekly-pulumi-update.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: weekly-pulumi-update
on:
repository_dispatch:
types: [run-pulumi-update-command]
schedule:
# Every Monday at 11AM UTC
- cron: 0 11 * * 1
Expand Down Expand Up @@ -88,5 +90,10 @@ jobs:
GH_TOKEN: ${{ github.token }}
run: |
gh pr create --title "Update pulumi/pulumi version to $PULUMI_VERSION" --body "Upgrading pulumi/pkg and pulumi/sdk to version $PULUMI_VERSION."
gh pr merge --auto
- name: Enable auto-merge
if: steps.gomod.outputs.changes != 0 && github.event_name == 'schedule'
env:
GH_TOKEN: ${{ github.token }}
run: |
gh pr merge --squash --auto "1"
name: weekly-pulumi-update

0 comments on commit 5cdb9a9

Please sign in to comment.