Skip to content

Update GH workflows, ecosystem providers #362

Update GH workflows, ecosystem providers

Update GH workflows, ecosystem providers #362

# This is the version of update-workflows-bridged-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 GH workflows, ecosystem providers
on:
schedule:
# 5 AM UTC ~ 10 PM PDT - specifically selected to avoid putting load on the CI system during working hours.
- cron: 0 5 * * *
workflow_dispatch:
inputs:
automerge:
description: Mark created PRs for auto-merging?
required: true
type: boolean
default: true
env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
jobs:
generate-providers-list:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: get-providers
run: echo "providers=$(jq . providers.json --compact-output)" >> "$GITHUB_OUTPUT"
working-directory: provider-ci
outputs:
providers: ${{ steps.get-providers.outputs.providers }}
deploy:
needs: generate-providers-list
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 ) }}
uses: ./.github/workflows/update-workflows.yml
secrets: inherit
with:
bridged: true
provider_name: ${{ matrix.provider }}
automerge: ${{ github.event.inputs.automerge == 'true' || github.event_name == 'schedule' }}
caller_workflow: update-workflows-ecosystem-providers