Skip to content

Commit

Permalink
Address further PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Edoardo Pirovano committed Jul 26, 2021
1 parent 934fb86 commit 554f1b3
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/update-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@ jobs:
npm install
npm ci
npm run removeNPMAbsolutePaths
git config --global user.email "github-actions@github.com"
git config --global user.name "github-actions[bot]"
git add node_modules
if ! git commit -am "Update checked-in dependencies" ; then
echo "No changes detected, skipping pushing..."
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"
fi
git push origin "$BRANCH"

0 comments on commit 554f1b3

Please sign in to comment.