We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 934fb86 commit 554f1b3Copy full SHA for 554f1b3
1 file changed
.github/workflows/update-dependencies.yml
@@ -30,12 +30,10 @@ jobs:
30
npm install
31
npm ci
32
npm run removeNPMAbsolutePaths
33
- git config --global user.email "github-actions@github.com"
34
- git config --global user.name "github-actions[bot]"
35
- git add node_modules
36
- if ! git commit -am "Update checked-in dependencies" ; then
37
- echo "No changes detected, skipping pushing..."
38
- exit 0
+ if [ ! -z "$(git status --porcelain)" ]; then
+ git config --global user.email "github-actions@github.com"
+ git config --global user.name "github-actions[bot]"
+ git add node_modules
+ git commit -am "Update checked-in dependencies"
+ git push origin "$BRANCH"
39
fi
40
- git push origin "$BRANCH"
41
-
0 commit comments