Skip to content

Commit

Permalink
fix: only commit when changes exist in fetch-external workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alecdwm committed Oct 3, 2023
1 parent 4684cfe commit 53dfecf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/fetch-external.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:
git remote set-url origin https://x-access-token:${CHAINDATA_CI_SUPERUSER_ACCESS_TOKEN}@github.com/TalismanSociety/chaindata
git config user.name "chaindata-ci-superuser[bot]"
git config user.email "146698419+chaindata-ci-superuser[bot]@users.noreply.github.com"
git add .
git commit -m 'updated externals'
git push
if [[ "$(git status --porcelain=v2)" != "" ]; then
git add .
git commit -m 'updated externals'
git push
fi
10 changes: 0 additions & 10 deletions assets/test-pls-delete.svg

This file was deleted.

0 comments on commit 53dfecf

Please sign in to comment.