Skip to content

Commit 554f1b3

Browse files
Address further PR comment
1 parent 934fb86 commit 554f1b3

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

.github/workflows/update-dependencies.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@ jobs:
3030
npm install
3131
npm ci
3232
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
33+
if [ ! -z "$(git status --porcelain)" ]; then
34+
git config --global user.email "github-actions@github.com"
35+
git config --global user.name "github-actions[bot]"
36+
git add node_modules
37+
git commit -am "Update checked-in dependencies"
38+
git push origin "$BRANCH"
3939
fi
40-
git push origin "$BRANCH"
41-

0 commit comments

Comments
 (0)