generated from pulumi/pulumi-tf-provider-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[internal] Update GitHub Actions workflow files (#115)
- Loading branch information
1 parent
9adb5d9
commit 107a0e9
Showing
15 changed files
with
119 additions
and
125 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,6 +105,13 @@ jobs: | |
run: make build_${{ matrix.language }} | ||
- name: Check worktree clean | ||
uses: pulumi/git-status-check-action@v1 | ||
with: | ||
allowed-changes: | | ||
sdk/**/pulumi-plugin.json | ||
sdk/dotnet/Pulumi.*.csproj | ||
sdk/go/*/internal/pulumiUtilities.go | ||
sdk/nodejs/package.json | ||
sdk/python/pyproject.toml | ||
- name: Compress SDK folder | ||
run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} . | ||
- name: Upload artifacts | ||
|
@@ -207,33 +214,6 @@ jobs: | |
Maintainer note: consult the [runbook](https://github.com/pulumi/platform-providers-team/blob/main/playbooks/tf-provider-updating.md) for dealing with any breaking changes. | ||
- if: github.event_name == 'pull_request' | ||
name: Check Configuration section | ||
run: | | ||
sed -n '/## Configuration/,$p' README.md | sed -n '/## Reference/q;p' >> config_section.txt | ||
jq -r '.config | select(.variables) | .variables | keys[]' < provider/cmd/pulumi-resource-${{ env.PROVIDER }}/schema.json >> keys.txt | ||
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64) | ||
{ | ||
echo "MISSING_CONFIG<<$EOF"; | ||
xargs -I {} sh -c "grep -q {} config_section.txt || echo \\\`{}\\\` not found in Configuration section" < keys.txt | ||
echo "$EOF"; | ||
} >> "$GITHUB_ENV" | ||
- if: github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' | ||
name: Comment on PR with Details of Configuration check | ||
uses: thollander/actions-comment-pull-request@v2 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
comment_tag: configurationCheck | ||
message: >+ | ||
### Is README.md missing any configuration options? | ||
${{ env.MISSING_CONFIG || 'No missing config!' }} | ||
${{ env.MISSING_CONFIG && 'Please add a description for each of these options to `README.md`.' }} | ||
${{ env.MISSING_CONFIG && 'Details about them can be found in either the upstream docs or `schema.json`.' }} | ||
- name: Tar provider binaries | ||
run: tar -zcf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ | ||
github.workspace }}/bin/ pulumi-resource-${{ env.PROVIDER }} | ||
|
@@ -300,6 +280,7 @@ jobs: | |
uses: goreleaser/goreleaser-action@v5 | ||
env: | ||
GORELEASER_CURRENT_TAG: v${{ steps.version.outputs.version }} | ||
PROVIDER_VERSION: ${{ steps.version.outputs.version }} | ||
with: | ||
args: -p 3 -f .goreleaser.prerelease.yml --rm-dist --skip-validate --timeout | ||
60m0s | ||
|
@@ -334,6 +315,42 @@ jobs: | |
if: failure() | ||
name: Send Publish Failure To Slack | ||
uses: rtCamp/action-slack-notify@v2 | ||
publish_go_sdk: | ||
name: publish_go_sdk | ||
needs: publish_sdk | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
- name: Install pulumictl | ||
uses: jaxxstorm/[email protected] | ||
with: | ||
tag: v0.0.46 | ||
repo: pulumi/pulumictl | ||
- id: version | ||
uses: pulumi/provider-version-action@v1 | ||
- name: Download Go SDK | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: go-sdk.tar.gz | ||
path: ${{ github.workspace }}/sdk/ | ||
- name: Uncompress Go SDK | ||
run: tar -zxf ${{ github.workspace }}/sdk/go.tar.gz -C | ||
${{ github.workspace }}/sdk/go | ||
shell: bash | ||
- uses: pulumi/publish-go-sdk-action@v1 | ||
with: | ||
repository: ${{ github.repository }} | ||
base-ref: ${{ github.sha }} | ||
source: sdk | ||
path: sdk | ||
version: ${{ steps.version.outputs.version }} | ||
additive: false | ||
# Avoid including other language SDKs & artifacts in the commit | ||
files: | | ||
go.* | ||
go/** | ||
!*.tar.gz | ||
test: | ||
name: test | ||
needs: build_sdk | ||
|
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 |
---|---|---|
|
@@ -6,7 +6,8 @@ | |
"nodejs@20.", | ||
"[email protected]", | ||
"[email protected].", | ||
"[email protected]" | ||
"[email protected]", | ||
"curl@8" | ||
], | ||
"shell": { | ||
"init_hook": [ | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.