Skip to content

Commit

Permalink
Use github.base_ref for the target branch because it has more qualifi…
Browse files Browse the repository at this point in the history
…er stuff that I guess github runners need.
  • Loading branch information
SpicyLemon committed Jul 29, 2024
1 parent f8d0753 commit 4dc4432
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ jobs:
# Using an env var for it (like this) prevents that vulnerability.
PR_TITLE: ${{ github.event.pull_request.title }}
PR_NUM: ${{ github.event.number }}
PR_TARGET: ${{ github.base_ref }}
run: |
./scripts/dependabot-changelog.sh \
--verbose \
--pr "$PR_NUM" \
--title "$PR_TITLE" \
--head-branch "$GITHUB_HEAD_REF" \
--target-branch "$GITHUB_BASE_REF"
--target-branch "$PR_TARGET"
# All commits must be signed, import key and sign commit of updated change log.
- name: Import GPG key
Expand Down

0 comments on commit 4dc4432

Please sign in to comment.