actions: add duplicate detection
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m59s
Build and Push Docker Image / deploy-on-green (push) Successful in 8s

This commit is contained in:
2026-02-06 21:45:08 -05:00
parent ac5abffd74
commit d7ad90a1d5

View File

@@ -75,8 +75,13 @@ jobs:
git config --local user.signingkey ~/.ssh/id_ed25519
git config --local gpg.format ssh
git config --local commit.gpgsign true
git commit -a -m "yt-dlp-bot: deploy update to ${{ needs.build-and-push.outputs.sha_short }}"
if [ -n "$(git status --porcelain)" ]; then
git commit -a -m "yt-dlp-bot: deploy update to ${{ needs.build-and-push.outputs.sha_short }}"
else
echo "No changes to commit, skipping..."
fi
exit 0
- name: Push changes
uses: ad-m/github-push-action@v1.0.0
with: