Repository navigation
chore(ci): gh action to run a daily check for upstream required upgrade #106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
2ab248e
chore(ci): gh action to run a daily check for upstream required upgrade
06ffd38
fixup! Merge pull request #96 from equinix/generate-example-and-docs
d24ff30
fixup! Merge pull request #96 from equinix/generate-example-and-docs
47f7d53
update cron to run every 8 hours Monday through Friday
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 was build based on https://github.com/pulumi/ci-mgmt | ||
| # but it is currently not in sync. Any update must be done manually | ||
|
|
||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| jobs: | ||
| check_upgrade_provider: | ||
| name: Check for upstream provider upgrades | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout Repo | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| submodules: true | ||
| - name: Setup tools | ||
| uses: ./.github/actions/setup-tools | ||
| with: | ||
| tools: go | ||
| - 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 | ||
| shell: bash | ||
| - name: "Set up git identity: email" | ||
| run: git config --global user.email noreply@github.com | ||
| shell: bash | ||
| - name: Run upgrade-provider upstream check | ||
| id: upstream_version | ||
| run: | | ||
| upgrade-provider "$REPO" --kind=check-upstream-version | ||
| env: | ||
| REPO: ${{ github.repository }} | ||
| shell: bash | ||
| name: Check upstream upgrade | ||
| on: | ||
| workflow_dispatch: {} #so we can run this manually if necessary. | ||
| schedule: | ||
| # Run every 8 hours Monday through Friday | ||
| - cron: '0 */8 * * 1-5' | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to confirm: the
upgrade-providercommand runs all necessary make tasks & patches and then opens a GitHub PR with the resulting changes?Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exactly. This action executes it with
kind=check-upstream-version, If a change is detected, it will create a new issue with the title "Upgrade terraform-provider-equinix to vX.Y.Z". That will trigger the upgrade-provider actionpulumi-equinix/.github/workflows/upgrade-provider.yml
Line 15 in 410b290
kind=all, this updates both the terraform provider, the bridge plugin and its dependencies