We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0bce52 commit 4c8decbCopy full SHA for 4c8decb
.github/workflows/create-release-pr.yml
@@ -43,6 +43,9 @@ jobs:
43
- name: Get release notes
44
id: release-notes
45
run: |
46
+ # Get the default branch
47
+ DEFAULT_BRANCH=$(gh api repos/${{ github.repository }} --jq '.default_branch')
48
+
49
# Get the last tag
50
LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
51
if [ -z "$LAST_TAG" ]; then
@@ -55,7 +58,7 @@ jobs:
55
58
-H "Accept: application/vnd.github+json" \
56
59
/repos/${{ github.repository }}/releases/generate-notes \
57
60
-f tag_name="v${{ env.VERSION }}" \
- -f target_commitish="master" \
61
+ -f target_commitish="$DEFAULT_BRANCH" \
62
-f previous_tag_name="${LAST_TAG}" | jq -r '.body')
63
64
# Save to file to handle multiline content
0 commit comments