From df201d29afd0e7e6e871cf4526bc88aac823c1ff Mon Sep 17 00:00:00 2001 From: Vilsol Date: Tue, 5 Mar 2024 19:14:32 +0200 Subject: [PATCH] chore: don't make pr if branches are in sync --- .github/workflows/release-pr.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release-pr.yaml b/.github/workflows/release-pr.yaml index cfcfc847..3fc6402f 100644 --- a/.github/workflows/release-pr.yaml +++ b/.github/workflows/release-pr.yaml @@ -37,5 +37,6 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | export PR_NUMBER=$(gh pr list -B main -H next --json number | jq -r '.[0].number') + if [[ "$(git rev-parse master)" == "$(git rev-parse next)" ]]; then exit 0; fi if [[ "$PR_NUMBER" == "null" ]]; then gh pr create -B main -H next -t "chore: release" -F changes.md; fi if [[ "$PR_NUMBER" != "null" ]]; then gh pr edit $PR_NUMBER -F changes.md; fi