From ed3955e5718b3d13f412cbe769153fbd7527c96e Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Wed, 8 May 2024 23:20:17 -0700 Subject: [PATCH] Update GitHub Actions workflows. (#461) This PR was automatically generated by the update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt repo, from commit 52918857446d71c94c16a732341e483a2b2b9f6e. --- .github/workflows/lint.yml | 2 +- .github/workflows/main.yml | 27 ---------------------- .github/workflows/prerelease.yml | 27 ---------------------- .github/workflows/release.yml | 27 ---------------------- .github/workflows/run-acceptance-tests.yml | 27 ---------------------- devbox.json | 3 ++- 6 files changed, 3 insertions(+), 110 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 23045a54f8..cd2842af9a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -60,7 +60,7 @@ jobs: continue-on-error: true run: make upstream - name: golangci-lint - uses: golangci/golangci-lint-action@v4 + uses: golangci/golangci-lint-action@v6 with: version: v1.58.0 working-directory: provider diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 067714af37..f4847ab1a9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -262,33 +262,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 }} diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index e86231b08e..a0d78c4a57 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -209,33 +209,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 }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e18b39bfa5..db543a8831 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -223,33 +223,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 }} diff --git a/.github/workflows/run-acceptance-tests.yml b/.github/workflows/run-acceptance-tests.yml index 7d96550a45..b2a5edacb5 100644 --- a/.github/workflows/run-acceptance-tests.yml +++ b/.github/workflows/run-acceptance-tests.yml @@ -233,33 +233,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 }} diff --git a/devbox.json b/devbox.json index 4e2ed2c382..1917bf7032 100644 --- a/devbox.json +++ b/devbox.json @@ -6,7 +6,8 @@ "nodejs@20.", "python3@3.11.8", "dotnet-sdk@6.0.", - "gradle_7@7.6" + "gradle_7@7.6", + "curl@8" ], "shell": { "init_hook": [