Skip to content

Update bridge, ecosystem providers #26

Update bridge, ecosystem providers

Update bridge, ecosystem providers #26

# This is the version of update-bridge=all-providers.yml scoped down to Ecosystem team owned providers.
#
# Generates a PR for the files in provider-ci/providers/* to each corresponding Pulumi 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, ecosystem providers
on:
workflow_dispatch:
inputs:
automerge:
description: Mark created PRs for auto-merging?
required: true
type: boolean
default: false
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
jobs:
generate-providers-list:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: get-providers
run: echo "::set-output name=providers::$(python generate_providers_list.py --team ecosystem)'"
working-directory: scripts
outputs:
providers: ${{ steps.get-providers.outputs.providers }}
update-bridge:
needs: generate-providers-list
runs-on: ubuntu-latest
strategy:
fail-fast: false
# GitHub recommends only issuing 1 API request per second, and never
# concurrently. For more information, see:
# https://docs.github.com/en/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits
max-parallel: 1
matrix:
provider: ${{ fromJson(needs.generate-providers-list.outputs.providers ) }}
steps:
- name: pulumi-${{ matrix.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-${{ matrix.provider }}
ref: main
- name: pulumi-${{ matrix.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-${{ matrix.provider }}
ref: master
# See: https://docs.github.com/en/rest/guides/best-practices-for-integrators#dealing-with-secondary-rate-limits
- name: Sleep to prevent hitting secondary rate limits
run: sleep 1