Skip to content

Commit

Permalink
test: use porcelain status
Browse files Browse the repository at this point in the history
  • Loading branch information
samhwang authored Mar 22, 2024
1 parent 529efea commit 7332848
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build-ozbargain-referrals-list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ jobs:
git config --global user.email "[email protected]"
git config --global user.name "Vietausit Admin (Github Actions)"
- name: Compare changes
- name: Compare changes and create PR if succeed
run: |
git diff --quiet && git diff --staged --quiet || git commit -am "chore: update ozbargain referrals list"
- name: Create new PR
run: |
gh pr create --fill --base master
if [[ `git status --porcelain` ]]; then
git commit -am "chore: update ozbargain referrals list"
gh pr create --fill --base master
else
echo "No changes to report"
fi

0 comments on commit 7332848

Please sign in to comment.