diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 27b6319da..178ec5651 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -49,12 +49,12 @@ jobs: run: | git add streams git status - git commit -m "[Bot] Update /streams" -m "Committed by [iptv-bot](https://github.com/apps/iptv-bot) via [update](https://github.com/iptv-org/iptv/actions/runs/${{ github.run_id }}) workflow." -m "${{ steps.playlist-update.outputs.OUTPUT }}" --no-verify + git diff-index --quiet HEAD || git commit -m "[Bot] Update /streams" -m "Committed by [iptv-bot](https://github.com/apps/iptv-bot) via [update](https://github.com/iptv-org/iptv/actions/runs/${{ github.run_id }}) workflow." -m "${{ steps.playlist-update.outputs.OUTPUT }}" --no-verify - name: commit changes to readme.md run: | git add README.md git status - git commit -m "[Bot] Update README.md" -m "Committed by [iptv-bot](https://github.com/apps/iptv-bot) via [update](https://github.com/iptv-org/iptv/actions/runs/${{ github.run_id }}) workflow." --no-verify + git diff-index --quiet HEAD || git commit -m "[Bot] Update README.md" -m "Committed by [iptv-bot](https://github.com/apps/iptv-bot) via [update](https://github.com/iptv-org/iptv/actions/runs/${{ github.run_id }}) workflow." --no-verify - name: push all changes to the repository if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} run: git push