-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (37 loc) · 1.51 KB
/
update-native-provider-workflows.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
# 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