Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/comment_bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,29 @@ on:
jobs:
crossbow:
name: Listen!
if: startsWith(github.event.comment.body, '@github-actions crossbow')
if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '@github-actions crossbow')}}
runs-on: ubuntu-latest
steps:
- name: Get PR SHA
id: sha
uses: actions/github-script@v4
with:
result-encoding: string
script: |
const { owner, repo, number } = context.issue;
const pr = await github.pulls.get({
owner,
repo,
pull_number: number,
});
return pr.data.head.sha
- name: Checkout Arrow
uses: actions/checkout@v3
with:
path: arrow
# fetch the tags for version number generation
fetch-depth: 0
ref: ${{ steps.sha.outputs.result }}
- name: Set up Python
uses: actions/setup-python@v2
with:
Expand Down