From 4fa93a03457b7fc1b83e87d5105a200142d7fc02 Mon Sep 17 00:00:00 2001 From: Pulumi Bot Date: Tue, 9 Apr 2024 05:04:36 +0000 Subject: [PATCH] [internal] Update GitHub Actions workflow files --- .github/workflows/build.yml | 44 +++++++++++----------- .github/workflows/prerelease.yml | 2 + .github/workflows/release.yml | 2 + .github/workflows/run-acceptance-tests.yml | 6 ++- 4 files changed, 31 insertions(+), 23 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cce6549efe..081e99f8c8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -94,6 +94,8 @@ jobs: schema-tools compare -p ${{ env.PROVIDER }} -o ${{ github.event.repository.default_branch }} -n --local-path=provider/cmd/pulumi-resource-${{ env.PROVIDER }}/schema.json >> $GITHUB_ENV echo 'EOF' >> $GITHUB_ENV + env: + GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }} - if: github.event_name == 'pull_request' name: Comment on PR with Details of Schema Check uses: thollander/actions-comment-pull-request@v2 @@ -562,6 +564,27 @@ jobs: arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository build-root-directory: ./sdk/java gradle-version: 7.4.1 + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v4 + with: + lfs: true + ref: ${{ env.PR_COMMIT_SHA }} + - name: Install Go + uses: actions/setup-go@v5 + with: + go-version: ${{ env.GOVERSION }} + - name: golangci-lint provider pkg + uses: golangci/golangci-lint-action@v4 + with: + version: ${{ env.GOLANGCI_LINT_VERSION }} + args: -c ../.golangci.yml --timeout ${{ env.GOLANGCI_LINT_TIMEOUT }} + working-directory: provider + name: lint + if: github.event_name == 'repository_dispatch' || + github.event.pull_request.head.repo.full_name == github.repository build-test-cluster: runs-on: ubuntu-latest name: build-test-cluster @@ -676,24 +699,3 @@ jobs: - uses: geekyeggo/delete-artifact@v1 with: name: config - lint: - runs-on: ubuntu-latest - steps: - - name: Checkout Repo - uses: actions/checkout@v4 - with: - lfs: true - ref: ${{ env.PR_COMMIT_SHA }} - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: ${{ env.GOVERSION }} - - name: golangci-lint provider pkg - uses: golangci/golangci-lint-action@v4 - with: - version: ${{ env.GOLANGCI_LINT_VERSION }} - args: -c ../../.golangci.yml --timeout ${{ env.GOLANGCI_LINT_TIMEOUT }} - working-directory: provider/pkg - name: lint - if: github.event_name == 'repository_dispatch' || - github.event.pull_request.head.repo.full_name == github.repository diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 9a481ae435..05660cf4c7 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -86,6 +86,8 @@ jobs: schema-tools compare -p ${{ env.PROVIDER }} -o ${{ github.event.repository.default_branch }} -n --local-path=provider/cmd/pulumi-resource-${{ env.PROVIDER }}/schema.json >> $GITHUB_ENV echo 'EOF' >> $GITHUB_ENV + env: + GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }} - if: github.event_name == 'pull_request' name: Comment on PR with Details of Schema Check uses: thollander/actions-comment-pull-request@v2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f0f3fdc899..6af544f4f2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -86,6 +86,8 @@ jobs: schema-tools compare -p ${{ env.PROVIDER }} -o ${{ github.event.repository.default_branch }} -n --local-path=provider/cmd/pulumi-resource-${{ env.PROVIDER }}/schema.json >> $GITHUB_ENV echo 'EOF' >> $GITHUB_ENV + env: + GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }} - if: github.event_name == 'pull_request' name: Comment on PR with Details of Schema Check uses: thollander/actions-comment-pull-request@v2 diff --git a/.github/workflows/run-acceptance-tests.yml b/.github/workflows/run-acceptance-tests.yml index a21ee3c1b1..410f47c64c 100644 --- a/.github/workflows/run-acceptance-tests.yml +++ b/.github/workflows/run-acceptance-tests.yml @@ -112,6 +112,8 @@ jobs: schema-tools compare -p ${{ env.PROVIDER }} -o ${{ github.event.repository.default_branch }} -n --local-path=provider/cmd/pulumi-resource-${{ env.PROVIDER }}/schema.json >> $GITHUB_ENV echo 'EOF' >> $GITHUB_ENV + env: + GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }} - if: github.event_name == 'pull_request' name: Comment on PR with Details of Schema Check uses: thollander/actions-comment-pull-request@v2 @@ -426,8 +428,8 @@ jobs: uses: golangci/golangci-lint-action@v4 with: version: ${{ env.GOLANGCI_LINT_VERSION }} - args: -c ../../.golangci.yml --timeout ${{ env.GOLANGCI_LINT_TIMEOUT }} - working-directory: provider/pkg + args: -c ../.golangci.yml --timeout ${{ env.GOLANGCI_LINT_TIMEOUT }} + working-directory: provider name: lint if: github.event_name == 'repository_dispatch' || github.event.pull_request.head.repo.full_name == github.repository