-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Assignment of upgrade PRs configuration for third-party packages
- Loading branch information
Showing
10 changed files
with
106 additions
and
2 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
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
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
53 changes: 53 additions & 0 deletions
53
provider-ci/internal/pkg/templates/external-provider/.github/workflows/upgrade-provider.yml
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt | ||
name: Upgrade provider | ||
|
||
on: | ||
workflow_dispatch: {} | ||
schedule: | ||
# At 05:00 on Monday | ||
- cron: 0 5 * * 1 | ||
|
||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
permissions: | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
upgrade_provider: | ||
name: upgrade-provider | ||
runs-on: #{{ .Config.runner.default }}# | ||
steps: | ||
#{{- if .Config.freeDiskSpaceBeforeBuild }}# | ||
# Run as first step so we don't delete things that have just been installed | ||
- name: Free Disk Space (Ubuntu) | ||
uses: #{{ .Config.actionVersions.freeDiskSpace }}# | ||
with: | ||
tool-cache: false | ||
swap-storage: false | ||
dotnet: false | ||
#{{- end }}# | ||
- name: Checkout Repo | ||
uses: #{{ .Config.actionVersions.checkout }}# | ||
#{{- if .Config.checkoutSubmodules }}# | ||
with: | ||
submodules: #{{ .Config.checkoutSubmodules }}# | ||
#{{- end }}# | ||
- name: Setup tools | ||
uses: ./.github/actions/setup-tools | ||
with: | ||
tools: pulumictl, pulumicli, #{{ range $index, $element := .Config.languages }}##{{if $index}}#, #{{end}}##{{ $element }}##{{end}}# | ||
- name: Install upgrade-provider | ||
run: go install github.com/pulumi/upgrade-provider@main | ||
shell: bash | ||
- name: "Set up git identity: name" | ||
run: | | ||
git config --global user.name 'Github Actions' | ||
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' | ||
shell: bash | ||
- name: Run upgrade-provider | ||
run: upgrade-provider "${{ github.repository }}" --kind="all" #{{ if .Config.javaGenVersion }}#--java-version="#{{ .Config.javaGenVersion }}#"#{{ end }}# | ||
shell: bash |
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
40 changes: 40 additions & 0 deletions
40
provider-ci/test-providers/acme/.github/workflows/upgrade-provider.yml
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt | ||
name: Upgrade provider | ||
|
||
on: | ||
workflow_dispatch: {} | ||
schedule: | ||
# At 05:00 on Monday | ||
- cron: 0 5 * * 1 | ||
|
||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
permissions: | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
upgrade_provider: | ||
name: upgrade-provider | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
- name: Setup tools | ||
uses: ./.github/actions/setup-tools | ||
with: | ||
tools: pulumictl, pulumicli, dotnet, go, nodejs, python | ||
- name: Install upgrade-provider | ||
run: go install github.com/pulumi/upgrade-provider@main | ||
shell: bash | ||
- name: "Set up git identity: name" | ||
run: | | ||
git config --global user.name 'Github Actions' | ||
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' | ||
shell: bash | ||
- name: Run upgrade-provider | ||
run: upgrade-provider "${{ github.repository }}" --kind="all" | ||
shell: bash |
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
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
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
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