File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 84
84
# If the worktree is dirty and this is a Renovate PR to bump
85
85
# dependencies, commit the updated SDK and push it back to the PR. The
86
86
# 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'
88
88
shell : bash
89
89
run : |
90
+ git diff --quiet -- sdk && echo "no changes to sdk" && exit
91
+
90
92
git config --global user.email "[email protected] "
91
93
git config --global user.name "pulumi-bot"
92
94
@@ -101,10 +103,12 @@ jobs:
101
103
git add sdk
102
104
git reset \
103
105
sdk/python/*/pulumi-plugin.json \
106
+ sdk/python/pyproject.toml \
107
+ sdk/dotnet/pulumi-plugin.json \
104
108
sdk/dotnet/Pulumi.*.csproj \
109
+ sdk/go/*/pulumi-plugin.json \
105
110
sdk/go/*/internal/pulumiUtilities.go \
106
- sdk/nodejs/package.json \
107
- sdk/python/pyproject.toml
111
+ sdk/nodejs/package.json
108
112
git commit -m 'Commit ${{ matrix.language }} SDK for Renovate'
109
113
110
114
# Push with pulumi-bot credentials to trigger a re-run of the
You can’t perform that action at this time.
0 commit comments