diff --git a/.github/workflows/bl.yml b/.github/workflows/bl.yml index 9f6209e..da156ba 100644 --- a/.github/workflows/bl.yml +++ b/.github/workflows/bl.yml @@ -47,8 +47,10 @@ jobs: git config --global user.name "${{ env.REPO_OWNER }}" git config --global user.email "${{ env.REPO_OWNER }}@github.com" git add blacklist*txt - git diff --staged --exit-code || echo "No changes to commit" - if [ $? -ne 0 ]; then + git diff --staged --quiet || CHANGED=true + if [ "$CHANGED" = true ]; then git commit -m "Update $timestamp" git push https://${{ env.GH_PAT }}@github.com/${{ env.REPO_OWNER }}/${{ env.REPO_NAME }}.git + else + echo "No changes to commit" fi