From 2c5f4bd9226c848aaba01219fe3eb789db1c1279 Mon Sep 17 00:00:00 2001 From: Kelly Sovacool Date: Fri, 12 Jan 2024 11:51:04 -0500 Subject: [PATCH] ci: couldn't get default branch... --- .github/workflows/post-release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/post-release.yml b/.github/workflows/post-release.yml index 37bf464..5ef7b6b 100644 --- a/.github/workflows/post-release.yml +++ b/.github/workflows/post-release.yml @@ -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) @@ -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