Skip to content

Commit

Permalink
Only fire upgrades on pulumi-bot issues
Browse files Browse the repository at this point in the history
This avoids accidental upgrades such as those caused by
pulumi/pulumi-aws#3160.
  • Loading branch information
iwahbe committed Dec 20, 2023
1 parent 1ac5f3d commit 2e079b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
upgrade_provider:
if: ${{ contains(github.event.issue.title, 'Upgrade terraform-provider-') || github.event_name == 'workflow_dispatch' }}
if: ${{ (github.event.issue.actor.login == 'pulumi-bot' && contains(github.event.issue.title, 'Upgrade terraform-provider-')) || github.event_name == 'workflow_dispatch' }}
name: upgrade-provider
runs-on: #{{ .Config.runner.default }}#
steps:
Expand Down

0 comments on commit 2e079b3

Please sign in to comment.