Skip to content

Commit

Permalink
chore(ci): add feature prefix to automated upgrade PRs (#116)
Browse files Browse the repository at this point in the history
This adds the `pr-title-prefix` argument to the upgrade steps in the
upgrade-bridge and upgrade-provider workflows. In the case where we were
using the official Pulumi upgrade action, this upgrades that action to
the latest version, v0.0.12. That version introduced the
`pr-title-prefix` argument and matches the base code of our custom
action.

Part of #114
  • Loading branch information
ctreatma authored Jul 23, 2024
2 parents e92f738 + 9f6fd63 commit b744749
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/upgrade-bridge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
ref: ${{ github.ref_name }}
- name: Call upgrade provider action
if: github.event_name == 'workflow_dispatch'
uses: pulumi/[email protected].10
uses: pulumi/[email protected].12
with:
kind: bridge
email: [email protected]
Expand All @@ -51,6 +51,7 @@ jobs:
target-bridge-version: ${{ inputs.target-bridge-version }}
pr-reviewers: ${{ inputs.pr-reviewers }}
pr-description: ${{ inputs.pr-description }}
pr-title-prefix: "feat: "
- name: Call upgrade provider action
# TODO(ocobles): upgrade-provider tool tries to assign the PR to the user who created it.
# Since we don't have an Equinix bot user, we are using the GITHUB_TOKEN. This results in an
Expand All @@ -70,6 +71,7 @@ jobs:
pr-reviewers: ${{ inputs.pr-reviewers }}
pr-description: ${{ inputs.pr-description }}
pr-assign: ${{ github.actor }}
pr-title-prefix: "feat: "
# TODO(ocobles) Set back when pr-assign is available or we have an Equinix bot token
# - name: Call upgrade provider action
# if: github.event_name == 'repository_dispatch'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/upgrade-provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ jobs:
email: [email protected]
username: GitHub
pr-assign: ${{ env.PR_ASSIGN }}
pr-title-prefix: "feat: "

0 comments on commit b744749

Please sign in to comment.