Browse Source

Merge pull request #1339 from octodns/fix-slash-commands-branch

Push slash_command changes to correct branch
main
Ross McFarland 1 week ago
committed by GitHub
parent
commit
462821df3f
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 1 deletions
  1. +4
    -0
      .changelog/ecd1c6a8a43c45ceb35e58c112d7ba27.md
  2. +7
    -1
      .github/workflows/slash_commands.yml

+ 4
- 0
.changelog/ecd1c6a8a43c45ceb35e58c112d7ba27.md View File

@ -0,0 +1,4 @@
---
type: none
---
Push slash_command changes to correct branch

+ 7
- 1
.github/workflows/slash_commands.yml View File

@ -53,6 +53,12 @@ jobs:
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
# Get the branch name from the PR using GitHub API
branch=$(curl -s -H "Authorization: token ${{ github.token }}" \
"https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.issue.number }}" | \
jq -r .head.ref)
echo "Branch: $branch"
./script/changelog create -c -t "${{ steps.parse_command.outputs.changelog_type }}" "${{ steps.parse_command.outputs.message }}"
git push origin HEAD:refs/pull/${{ github.event.issue.number }}/head
git push origin HEAD:"$branch"

Loading…
Cancel
Save