From 44e082a0a06c045f82028d22c85a8a924006d4b5 Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Fri, 31 May 2024 01:57:56 -0700 Subject: [PATCH] Update GitHub Actions workflows. (#92) This PR was automatically generated by the update-native-provider-workflows workflow in the pulumi/ci-mgmt repo, from commit 236437ea328a6f3dc4fbfa4924fc968fc619842a. --- .github/workflows/build.yml | 4 ++-- .github/workflows/prerelease.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/run-acceptance-tests.yml | 14 ++++++++++---- .github/workflows/weekly-pulumi-update.yml | 2 ++ 5 files changed, 18 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ee15554..3278f6e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -123,7 +123,7 @@ jobs: allowed-changes: |- sdk/**/pulumi-plugin.json sdk/dotnet/Pulumi.*.csproj - sdk/go/*/internal/pulumiUtilities.go + sdk/go/**/pulumiUtilities.go sdk/nodejs/package.json sdk/python/pyproject.toml - run: git status --porcelain @@ -227,7 +227,7 @@ jobs: allowed-changes: |- sdk/**/pulumi-plugin.json sdk/dotnet/Pulumi.*.csproj - sdk/go/*/internal/pulumiUtilities.go + sdk/go/**/pulumiUtilities.go sdk/nodejs/package.json sdk/python/pyproject.toml - run: git status --porcelain diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index e8e7e34..9998d8e 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -115,7 +115,7 @@ jobs: allowed-changes: |- sdk/**/pulumi-plugin.json sdk/dotnet/Pulumi.*.csproj - sdk/go/*/internal/pulumiUtilities.go + sdk/go/**/pulumiUtilities.go sdk/nodejs/package.json sdk/python/pyproject.toml - run: git status --porcelain @@ -219,7 +219,7 @@ jobs: allowed-changes: |- sdk/**/pulumi-plugin.json sdk/dotnet/Pulumi.*.csproj - sdk/go/*/internal/pulumiUtilities.go + sdk/go/**/pulumiUtilities.go sdk/nodejs/package.json sdk/python/pyproject.toml - run: git status --porcelain diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b958a46..0063fe0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -115,7 +115,7 @@ jobs: allowed-changes: |- sdk/**/pulumi-plugin.json sdk/dotnet/Pulumi.*.csproj - sdk/go/*/internal/pulumiUtilities.go + sdk/go/**/pulumiUtilities.go sdk/nodejs/package.json sdk/python/pyproject.toml - run: git status --porcelain @@ -219,7 +219,7 @@ jobs: allowed-changes: |- sdk/**/pulumi-plugin.json sdk/dotnet/Pulumi.*.csproj - sdk/go/*/internal/pulumiUtilities.go + sdk/go/**/pulumiUtilities.go sdk/nodejs/package.json sdk/python/pyproject.toml - run: git status --porcelain diff --git a/.github/workflows/run-acceptance-tests.yml b/.github/workflows/run-acceptance-tests.yml index 9495894..cce18a8 100644 --- a/.github/workflows/run-acceptance-tests.yml +++ b/.github/workflows/run-acceptance-tests.yml @@ -140,7 +140,7 @@ jobs: allowed-changes: |- sdk/**/pulumi-plugin.json sdk/dotnet/Pulumi.*.csproj - sdk/go/*/internal/pulumiUtilities.go + sdk/go/**/pulumiUtilities.go sdk/nodejs/package.json sdk/python/pyproject.toml - run: git status --porcelain @@ -247,7 +247,7 @@ jobs: allowed-changes: |- sdk/**/pulumi-plugin.json sdk/dotnet/Pulumi.*.csproj - sdk/go/*/internal/pulumiUtilities.go + sdk/go/**/pulumiUtilities.go sdk/nodejs/package.json sdk/python/pyproject.toml - run: git status --porcelain @@ -404,8 +404,14 @@ jobs: runs-on: ubuntu-latest name: sentinel steps: - - name: Is workflow a success - run: echo yes + - name: Mark workflow as successful + uses: guibranco/github-status-action-v2@0849440ec82c5fa69b2377725b9b7852a3977e76 + with: + authToken: ${{ secrets.GITHUB_TOKEN }} + context: Sentinel + state: success + description: Sentinel checks passed + sha: ${{ github.event.pull_request.head.sha || github.sha }} if: github.event_name == 'repository_dispatch' || github.event.pull_request.head.repo.full_name == github.repository needs: diff --git a/.github/workflows/weekly-pulumi-update.yml b/.github/workflows/weekly-pulumi-update.yml index c548d9e..ec8f2eb 100644 --- a/.github/workflows/weekly-pulumi-update.yml +++ b/.github/workflows/weekly-pulumi-update.yml @@ -94,6 +94,8 @@ jobs: for MODFILE in $(find . -name go.mod); do pushd $(dirname $MODFILE); go get github.com/pulumi/pulumi/pkg/v3 github.com/pulumi/pulumi/sdk/v3; go mod tidy; popd; done + gh repo view pulumi/pulumi --json latestRelease --jq .latestRelease.tagName | sed 's/^v//' > .pulumi.version + git update-index -q --refresh if ! git diff-files --quiet; then echo changes=1 >> "$GITHUB_OUTPUT"; fi