generated from pulumi/pulumi-tf-provider-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update GitHub Actions workflows. (#619)
This PR was automatically generated by the update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt repo, from commit f3712fc20118361a28fd8acf25d5deb5ee8dbe15.
- Loading branch information
1 parent
fe7e3a5
commit 64f8dde
Showing
19 changed files
with
81 additions
and
50 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 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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,61 @@ | ||
# 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: | ||
inputs: | ||
version: | ||
description: | | ||
The version of the upstream provider to upgrade to, without the 'v' prefix | ||
If no version is specified, it will be inferred from the upstream provider's release tags. | ||
required: false | ||
type: string | ||
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: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
# Persist credentials so upgrade-provider can push a new branch. | ||
persist-credentials: true | ||
- name: Setup tools | ||
uses: ./.github/actions/setup-tools | ||
with: | ||
tools: pulumictl, pulumicli, go, nodejs, dotnet, python, java | ||
- 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 | ||
run: upgrade-provider "${{ github.repository }}" --kind="all" | ||
- name: Create issues for new upstream version | ||
if: inputs.version == '' | ||
id: upstream_version | ||
# This step outputs `latest_version` if there is a pending upgrade | ||
run: upgrade-provider "$REPO" --kind=check-upstream-version | ||
env: | ||
REPO: ${{ github.repository }} | ||
shell: bash | ||
- name: Calculate target version | ||
id: target_version | ||
# Prefer the manually specified version if it exists | ||
# upstream_version will be empty if the provider is up-to-date | ||
run: echo "version=${{ github.event.inputs.version || steps.upstream_version.outputs.latest_version }}" >> "$GITHUB_OUTPUT" | ||
shell: bash | ||
- name: Attempt provider upgrade | ||
# Only attempt the upgrade if we have a target version | ||
if: steps.target_version.outputs.version != '' | ||
run: upgrade-provider "${{ github.repository }}" --kind="all" --target-version="${{ steps.target_version.outputs.version }}" | ||
shell: bash | ||
name: Upgrade provider | ||
on: | ||
issues: | ||
types: | ||
- opened | ||
workflow_dispatch: {} |
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