Skip to content

Commit

Permalink
Propagate target Pulumi version (#1492)
Browse files Browse the repository at this point in the history
This change permits testing pre-release pulumi/pulumi versions through
provider PRs.
  • Loading branch information
t0yv0 authored Oct 27, 2023
1 parent b49476f commit 3850ad4
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/update-providers-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,17 @@ on:
# These checks can be triggerred manually from the Actions tab, which already lets you specify
# which branch of the bridge to use for testing.
workflow_dispatch:
inputs: {}
inputs:
pulumiVersion:
description: pulumi/pulumi version to use
type: string
default: ""
required: false
bridgeVersion:
description: 'Version of Bridge to upgrade to; defaults to current sha'
type: string
default: ""
required: false

# # Alternatively, they can be triggered by opening a feature-* branch. Not having these enabled on
# # normal branches and PRs is intentional as the checks consume a lot of resources.
Expand Down Expand Up @@ -36,11 +46,12 @@ jobs:
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.PULUMI_BOT_TOKEN }}
repository: pulumi/${{ matrix.provider }}
repository: pulumi/pulumi-${{ matrix.provider }}
event-type: upgrade-bridge
client-payload: |-
{
"target-bridge-version": ${{ toJSON(github.sha) }},
"target-pulumi-version": ${{ toJSON(github.event.inputs.pulumiVersion) }},
"target-bridge-version": ${{ toJSON(github.event.inputs.bridgeVersion != "" && github.event.inputs.bridgeVersion || github.sha) }},
"pr-reviewers": ${{ toJSON( github.triggering_actor || 't0yv0' ) }},
"pr-description": "This PR was created to test a pulumi/pulumi-terraform-bridge feature.\n\n- pulumi/pulumi-terraform-bridge#${{ github.event.number }}\n\n- https://github.com/pulumi/pulumi-terraform-bridge/commit/${{github.sha}}\n\nDO NOT MERGE.",
"automerge": false
Expand Down

0 comments on commit 3850ad4

Please sign in to comment.