Skip to content

Commit ae8d302

Browse files
committed
[internal] Update GitHub Actions workflow files
1 parent 93857b7 commit ae8d302

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/build_sdk.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,11 @@ jobs:
8484
# If the worktree is dirty and this is a Renovate PR to bump
8585
# dependencies, commit the updated SDK and push it back to the PR. The
8686
# job will still be marked as a failure.
87-
if: failure() && steps.worktreeClean.outcome == 'failure' && contains(github.actor, 'renovate')
87+
if: failure() && steps.worktreeClean.outcome == 'failure' && contains(github.actor, 'renovate') && github.event_name == 'pull_request'
8888
shell: bash
8989
run: |
90+
git diff --quiet -- sdk && echo "no changes to sdk" && exit
91+
9092
git config --global user.email "[email protected]"
9193
git config --global user.name "pulumi-bot"
9294
@@ -101,10 +103,12 @@ jobs:
101103
git add sdk
102104
git reset \
103105
sdk/python/*/pulumi-plugin.json \
106+
sdk/python/pyproject.toml \
107+
sdk/dotnet/pulumi-plugin.json \
104108
sdk/dotnet/Pulumi.*.csproj \
109+
sdk/go/*/pulumi-plugin.json \
105110
sdk/go/*/internal/pulumiUtilities.go \
106-
sdk/nodejs/package.json \
107-
sdk/python/pyproject.toml
111+
sdk/nodejs/package.json
108112
git commit -m 'Commit ${{ matrix.language }} SDK for Renovate'
109113
110114
# Push with pulumi-bot credentials to trigger a re-run of the

0 commit comments

Comments
 (0)