Skip to content

Commit

Permalink
Modify weekly pulumi upgrade action to run acceptance tests in PR (#1313
Browse files Browse the repository at this point in the history
)

Previously the weekly pulumi upgrade couldn't auto-merge because it used
the built-in action access token for creating the PR. That default GH
action user doesn't have the necessary access rights (i.e. is not a
member of pulumi) to run acceptance tests.

This change makes the gh cli use the pulumi bot token.
  • Loading branch information
flostadler authored Jun 17, 2024
1 parent 5cdb9a9 commit 58d6cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/weekly-pulumi-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
- name: pull-request
if: steps.gomod.outputs.changes != 0
env:
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
run: |
gh pr create --title "Update pulumi/pulumi version to $PULUMI_VERSION" --body "Upgrading pulumi/pkg and pulumi/sdk to version $PULUMI_VERSION."
- name: Enable auto-merge
Expand Down

0 comments on commit 58d6cda

Please sign in to comment.