From 39a06b721368ec6f115f524f0dca18016ef0d97d Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Fri, 27 Dec 2024 21:32:55 -0800 Subject: [PATCH] Update GitHub Actions workflows. (#562) [internal] Update GitHub Actions workflow files --- .github/workflows/build_sdk.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_sdk.yml b/.github/workflows/build_sdk.yml index 41477ee..438e864 100644 --- a/.github/workflows/build_sdk.yml +++ b/.github/workflows/build_sdk.yml @@ -85,9 +85,11 @@ jobs: # If the worktree is dirty and this is a Renovate PR to bump # dependencies, commit the updated SDK and push it back to the PR. The # job will still be marked as a failure. - if: failure() && steps.worktreeClean.outcome == 'failure' && contains(github.actor, 'renovate') + if: failure() && steps.worktreeClean.outcome == 'failure' && contains(github.actor, 'renovate') && github.event_name == 'pull_request' shell: bash run: | + git diff --quiet -- sdk && echo "no changes to sdk" && exit + git config --global user.email "bot@pulumi.com" git config --global user.name "pulumi-bot" @@ -102,10 +104,12 @@ jobs: git add sdk git reset \ sdk/python/*/pulumi-plugin.json \ + sdk/python/pyproject.toml \ + sdk/dotnet/pulumi-plugin.json \ sdk/dotnet/Pulumi.*.csproj \ + sdk/go/*/pulumi-plugin.json \ sdk/go/*/internal/pulumiUtilities.go \ - sdk/nodejs/package.json \ - sdk/python/pyproject.toml + sdk/nodejs/package.json git commit -m 'Commit ${{ matrix.language }} SDK for Renovate' # Push with pulumi-bot credentials to trigger a re-run of the