Skip to content

Commit

Permalink
chore: don't make pr if branches are in sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Mar 5, 2024
1 parent 48456b8 commit df201d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit df201d2

Please sign in to comment.