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