Skip to content

Commit

Permalink
Update release-bot.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
buger authored Sep 27, 2024
1 parent 869fe5f commit 981ef25
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release-bot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ jobs:
&& sudo apt install gh -y
- name: Get PR details
if: steps.check_command.outputs.release_valid == 'true'
id: pr_details
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
PR_DATA=$(gh pr view ${{ steps.check_command.outputs.pr_number }} --json headRefOid)
COMMIT_SHA=$(echo $PR_DATA | jq -r .headRefOid)
Expand Down Expand Up @@ -137,10 +138,15 @@ jobs:
} else {
body = '❌ Cherry-pick operation failed. Please check the action logs for more information.';
}
// Ensure the repo owner and name are correct
const owner = context.repo.owner || '${{ github.repository_owner }}';
const repo = context.repo.name || '${{ github.event.repository.name }}';
github.rest.issues.createComment({
issue_number: ${{ steps.check_command.outputs.pr_number }},
owner: context.repo.owner,
repo: context.repo.name,
owner: owner,
repo: repo,
body: body
});

0 comments on commit 981ef25

Please sign in to comment.