-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Combine upstream check & upgrade workflows
- Remove the chain of dependencies where we create issues then trigger the upgrade from the issue. - Rework so we create any new issues, then immediately attempt the provider upgrade. This removes the need to filter the triggering event to stop other issues triggering upgrades by accident which forces the uses of hard-coded internal bot users which prevents these workflows from being used by third parties.
- Loading branch information
1 parent
7aabad1
commit b3708ec
Showing
11 changed files
with
96 additions
and
242 deletions.
There are no files selected for viewing
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
43 changes: 0 additions & 43 deletions
43
...r-ci/internal/pkg/templates/bridged-provider/.github/workflows/check-upstream-upgrade.yml
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt | ||
|
||
name: Upgrade provider | ||
on: | ||
issues: | ||
types: | ||
- opened | ||
workflow_dispatch: {} | ||
schedule: | ||
# 3 AM UTC ~ 8 PM PDT / 7 PM PST daily. Time chosen to run during off hours. | ||
- cron: 0 3 * * * | ||
|
||
env: | ||
GH_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
jobs: | ||
upgrade_provider: | ||
if: ${{ (github.event.issue.user.login == 'pulumi-bot' && contains(github.event.issue.title, 'Upgrade terraform-provider-')) || github.event_name == 'workflow_dispatch' }} | ||
name: upgrade-provider | ||
runs-on: #{{ .Config.runner.default }}# | ||
steps: | ||
|
@@ -31,17 +40,18 @@ jobs: | |
- name: Install upgrade-provider | ||
run: go install github.com/pulumi/upgrade-provider@main | ||
shell: bash | ||
- name: "Set up git identity: name" | ||
- name: "Set up git identity" | ||
run: | | ||
git config --global user.name '[email protected]' | ||
git config --global user.email '[email protected]' | ||
shell: bash | ||
- name: Run upgrade-provider | ||
- name: Create issues for new upstream version | ||
id: upstream_version | ||
run: | | ||
upgrade-provider "$REPO" --kind=check-upstream-version | ||
env: | ||
REPO: ${{ github.repository }} | ||
shell: bash | ||
- name: Attempt provider upgrade | ||
run: upgrade-provider "${{ github.repository }}" --kind="all" #{{ if .Config.javaGenVersion }}#--java-version="#{{ .Config.javaGenVersion }}#"#{{ end }}# | ||
shell: bash | ||
name: Upgrade provider | ||
on: | ||
issues: | ||
types: | ||
- opened | ||
workflow_dispatch: {} |
38 changes: 0 additions & 38 deletions
38
provider-ci/test-providers/acme/.github/workflows/check-upstream-upgrade.yml
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt | ||
|
||
name: Upgrade provider | ||
on: | ||
issues: | ||
types: | ||
- opened | ||
workflow_dispatch: {} | ||
schedule: | ||
# 3 AM UTC ~ 8 PM PDT / 7 PM PST daily. Time chosen to run during off hours. | ||
- cron: 0 3 * * * | ||
|
||
env: | ||
GH_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
jobs: | ||
upgrade_provider: | ||
if: ${{ (github.event.issue.user.login == 'pulumi-bot' && contains(github.event.issue.title, 'Upgrade terraform-provider-')) || github.event_name == 'workflow_dispatch' }} | ||
name: upgrade-provider | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -18,17 +27,18 @@ jobs: | |
- name: Install upgrade-provider | ||
run: go install github.com/pulumi/upgrade-provider@main | ||
shell: bash | ||
- name: "Set up git identity: name" | ||
- name: "Set up git identity" | ||
run: | | ||
git config --global user.name '[email protected]' | ||
git config --global user.email '[email protected]' | ||
shell: bash | ||
- name: Run upgrade-provider | ||
- name: Create issues for new upstream version | ||
id: upstream_version | ||
run: | | ||
upgrade-provider "$REPO" --kind=check-upstream-version | ||
env: | ||
REPO: ${{ github.repository }} | ||
shell: bash | ||
- name: Attempt provider upgrade | ||
run: upgrade-provider "${{ github.repository }}" --kind="all" | ||
shell: bash | ||
name: Upgrade provider | ||
on: | ||
issues: | ||
types: | ||
- opened | ||
workflow_dispatch: {} |
40 changes: 0 additions & 40 deletions
40
provider-ci/test-providers/aws/.github/workflows/check-upstream-upgrade.yml
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt | ||
|
||
name: Upgrade provider | ||
on: | ||
issues: | ||
types: | ||
- opened | ||
workflow_dispatch: {} | ||
schedule: | ||
# 3 AM UTC ~ 8 PM PDT / 7 PM PST daily. Time chosen to run during off hours. | ||
- cron: 0 3 * * * | ||
|
||
env: | ||
GH_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
jobs: | ||
upgrade_provider: | ||
if: ${{ (github.event.issue.user.login == 'pulumi-bot' && contains(github.event.issue.title, 'Upgrade terraform-provider-')) || github.event_name == 'workflow_dispatch' }} | ||
name: upgrade-provider | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -27,17 +36,18 @@ jobs: | |
- name: Install upgrade-provider | ||
run: go install github.com/pulumi/upgrade-provider@main | ||
shell: bash | ||
- name: "Set up git identity: name" | ||
- name: "Set up git identity" | ||
run: | | ||
git config --global user.name '[email protected]' | ||
git config --global user.email '[email protected]' | ||
shell: bash | ||
- name: Run upgrade-provider | ||
- name: Create issues for new upstream version | ||
id: upstream_version | ||
run: | | ||
upgrade-provider "$REPO" --kind=check-upstream-version | ||
env: | ||
REPO: ${{ github.repository }} | ||
shell: bash | ||
- name: Attempt provider upgrade | ||
run: upgrade-provider "${{ github.repository }}" --kind="all" | ||
shell: bash | ||
name: Upgrade provider | ||
on: | ||
issues: | ||
types: | ||
- opened | ||
workflow_dispatch: {} |
38 changes: 0 additions & 38 deletions
38
provider-ci/test-providers/cloudflare/.github/workflows/check-upstream-upgrade.yml
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt | ||
|
||
name: Upgrade provider | ||
on: | ||
issues: | ||
types: | ||
- opened | ||
workflow_dispatch: {} | ||
schedule: | ||
# 3 AM UTC ~ 8 PM PDT / 7 PM PST daily. Time chosen to run during off hours. | ||
- cron: 0 3 * * * | ||
|
||
env: | ||
GH_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
jobs: | ||
upgrade_provider: | ||
if: ${{ (github.event.issue.user.login == 'pulumi-bot' && contains(github.event.issue.title, 'Upgrade terraform-provider-')) || github.event_name == 'workflow_dispatch' }} | ||
name: upgrade-provider | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -18,17 +27,18 @@ jobs: | |
- name: Install upgrade-provider | ||
run: go install github.com/pulumi/upgrade-provider@main | ||
shell: bash | ||
- name: "Set up git identity: name" | ||
- name: "Set up git identity" | ||
run: | | ||
git config --global user.name '[email protected]' | ||
git config --global user.email '[email protected]' | ||
shell: bash | ||
- name: Run upgrade-provider | ||
- name: Create issues for new upstream version | ||
id: upstream_version | ||
run: | | ||
upgrade-provider "$REPO" --kind=check-upstream-version | ||
env: | ||
REPO: ${{ github.repository }} | ||
shell: bash | ||
- name: Attempt provider upgrade | ||
run: upgrade-provider "${{ github.repository }}" --kind="all" | ||
shell: bash | ||
name: Upgrade provider | ||
on: | ||
issues: | ||
types: | ||
- opened | ||
workflow_dispatch: {} |
Oops, something went wrong.