Skip to content

Commit

Permalink
Reapplied pulumi/ci-mgmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ringods committed Nov 8, 2024
1 parent efba3b1 commit 22a69e0
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 42 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/pr-automation.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
echo 'EOF'
} >> "$GITHUB_OUTPUT"
- name: Create GH Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: inputs.isPrerelease == false
with:
tag_name: v${{ inputs.version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upgrade-bridge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ permissions:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
upgrade_provider:
name: upgrade-provider
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/upgrade-provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
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
Expand Down Expand Up @@ -61,7 +61,16 @@ jobs:
run: echo "version=${{ github.event.inputs.version || steps.upstream_version.outputs.latest_version }}" >> "$GITHUB_OUTPUT"
shell: bash
- name: Attempt provider upgrade
id: upgrade_provider
# Only attempt the upgrade if we have a target version
if: steps.target_version.outputs.version != ''
# Don't mark the build as failed if we can't auto-open a PR as we've already opened the upgrade issue for tracking
continue-on-error: true
run: upgrade-provider "${{ github.repository }}" --kind="all" --target-version="${{ steps.target_version.outputs.version }}"
shell: bash
- name: Comment on upgrade issue if automated PR failed
if: steps.upgrade_provider.outcome == 'failure'
shell: bash
run: |
issue_number=$(gh issue list --search "pulumiupgradeproviderissue" --repo "${{ github.repository }}" --json=number --jq=".[0].number")
gh issue comment "${issue_number}" --repo "${{ github.repository }}" --body "Failed to create automatic PR: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/"
3 changes: 2 additions & 1 deletion .upgrade-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
upstream-provider-name: terraform-provider-grafana
upstream-provider-org: grafana
remove-plugins: true
pr-reviewers: ringods
pulumi-infer-version: true
pr-reviewers: ringods
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ bin/pulumi-java-gen: .pulumi-java-gen.version
# - Run make ci-mgmt to apply the change locally.
#
ci-mgmt: .ci-mgmt.yaml
find .github/workflows/*.yml -type f ! -name "$(PACK)*.yml" -delete
go run github.com/pulumi/ci-mgmt/provider-ci@master generate \
--name $(ORG)/pulumi-$(PACK) \
--out . \
Expand Down

0 comments on commit 22a69e0

Please sign in to comment.