Skip to content

Commit bae03d6

Browse files
committed
replace hardcoded develop with github.ref_name
1 parent 73954bc commit bae03d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release-source.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,14 +227,14 @@ jobs:
227227
PRS=$(curl -s -H "Accept: application/vnd.github+json" \
228228
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
229229
-H "X-GitHub-Api-Version: 2022-11-28" \
230-
"https://api.github.com/repos/${{ github.repository_owner }}/${{ github.event.repository.name }}/pulls?state=closed&base=develop&sort=updated&direction=desc")
230+
"https://api.github.com/repos/${{ github.repository_owner }}/${{ github.event.repository.name }}/pulls?state=closed&base=${{ github.ref_name }}&sort=updated&direction=desc")
231231
232232
if echo "$PRS" | jq -e . > /dev/null 2>&1; then
233233
PR_NOTES=$(echo "$PRS" | jq -r --arg since "$RELEASE_DATE" '.[] | select(.merged_at != null and .merged_at > $since) | "* \(.title) ([#\(.number)](\(.html_url)))"')
234234
else
235235
PR_NOTES="could not fetch release notes"
236236
fi
237-
echo "$PR_NOTES" > pr_notes.txt
237+
echo "$PR_NOTES" > pr_notes.txt
238238
239239
- name: create pr
240240
id: create-pr

0 commit comments

Comments
 (0)