Update GH workflows, native providers (auto-pr) #488
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generates a PR for the files in native-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, native providers (auto-pr) | |
on: | |
workflow_dispatch: | |
schedule: | |
# 5 AM UTC ~ 10 PM PDT - specifically selected to avoid putting load on the CI system during working hours. | |
- cron: 0 5 * * * | |
jobs: | |
generate-providers-list: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- id: get-providers | |
run: echo "providers=$(python generate_native_providers_list.py --for-auto-pr)'" >> "$GITHUB_OUTPUT" | |
working-directory: scripts | |
outputs: | |
providers: ${{ steps.get-providers.outputs.providers }} | |
update-provider: | |
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: false | |
provider_name: ${{ matrix.provider }} | |
automerge: true | |
caller_workflow: update-native-provider-workflows | |