From 0dbccbeb83713af184f1bf7e761942bb19028775 Mon Sep 17 00:00:00 2001 From: Moshe Atlow Date: Sun, 26 Nov 2023 01:07:07 +0200 Subject: [PATCH] fix: don't open pr if no auto update changes (#94) --- .github/workflows/update-links.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/update-links.yml b/.github/workflows/update-links.yml index d66afb1..69230a9 100644 --- a/.github/workflows/update-links.yml +++ b/.github/workflows/update-links.yml @@ -34,6 +34,7 @@ jobs: CF_SECRET_ACCESS_KEY: ${{ secrets.CF_SECRET_ACCESS_KEY }} - name: Commit Changes + id: git_auto_commit uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0 with: commit_options: '--no-verify --no-signoff' @@ -42,6 +43,7 @@ jobs: create_branch: true - name: Open and Merge Pull Request + if: steps.git_auto_commit.outputs.changes_detected == 'true' run: | gh pr create --fill gh pr merge --squash --delete-branch --admin