Skip to content

Commit

Permalink
ci: couldn't get default branch...
Browse files Browse the repository at this point in the history
  • Loading branch information
kelly-sovacool committed Jan 12, 2024
1 parent c70378c commit 2c5f4bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/post-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: |
with open("CHANGELOG.md", "r") as infile:
lines = infile.readlines()
lines.insert(0, "## development version\n")
lines.insert(0, "## development version\n\n")
with open("CHANGELOG.md", "w") as outfile:
outfile.writelines(lines)
Expand All @@ -40,8 +40,10 @@ jobs:
git commit -m "chore: bump changelog & version after release of ${{ github.ref_name }}"
git push --set-upstream origin ${{ env.BRANCH }}
default_branch=$(git remote show origin | sed -n '/HEAD branch/s/.*: //p')
gh pr create \
--base "$(git remote show origin | sed -n '/HEAD branch/s/.*: //p')" \
--base master \
--head ${{ env.BRANCH }} \
--fill-first
Expand Down

0 comments on commit 2c5f4bd

Please sign in to comment.