-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (41 loc) · 1.45 KB
/
update-bridge-single-ecosystem-provider.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Performs a workflow_dispatch to run the upgrade-bridge workflow in a specified
# provider.
# Note that this workflow does not generate any files - workflows must already be generated and committed to this repo
# when this workflow is run.
name: Update bridge, single ecosystem provider
on:
workflow_dispatch:
inputs:
automerge:
description: Mark created PRs for auto-merging?
required: true
type: boolean
default: false
provider:
description: The name of the provider to update - do not include the pulumi prefix in the name.
required: true
type: string
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
jobs:
update-bridge:
runs-on: ubuntu-latest
steps:
- name: pulumi-${{ github.event.inputs.provider }} main
id: upgrade-on-main
uses: benc-uk/[email protected]
continue-on-error: true
with:
workflow: upgrade-bridge.yml
token: ${{ secrets.PULUMI_BOT_TOKEN }}
repo: pulumi/pulumi-${{ github.event.inputs.provider }}
ref: main
- name: pulumi-${{ github.event.inputs.provider }} master
id: upgrade-on-master
if: steps.upgrade-on-main.outcome == 'failure'
uses: benc-uk/[email protected]
with:
workflow: upgrade-bridge.yml
token: ${{ secrets.PULUMI_BOT_TOKEN }}
repo: pulumi/pulumi-${{ github.event.inputs.provider }}
ref: master