From d7ad90a1d5754e702f399fc83b7dda26bed82a83 Mon Sep 17 00:00:00 2001 From: William P Date: Fri, 6 Feb 2026 21:45:08 -0500 Subject: [PATCH] actions: add duplicate detection --- .gitea/workflows/build-and-push.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build-and-push.yaml b/.gitea/workflows/build-and-push.yaml index 1bc0653..60075fc 100644 --- a/.gitea/workflows/build-and-push.yaml +++ b/.gitea/workflows/build-and-push.yaml @@ -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: