forked from apache/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial GitHub Workflow triggering archery bot
- Loading branch information
Showing
2 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: pr-bot | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- converted_to_draft | ||
- ready_for_review | ||
pull_request_review: | ||
types: | ||
- submitted | ||
push: | ||
|
||
jobs: | ||
run-pr-bot: | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Arrow | ||
uses: actions/checkout@v3 | ||
with: | ||
path: arrow | ||
# fetch the tags for version number generation | ||
fetch-depth: 0 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
- name: Install Archery and Crossbow dependencies | ||
run: pip install -e arrow/dev/archery[bot] | ||
- name: Handle PR workflow event | ||
env: | ||
ARROW_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CROSSBOW_GITHUB_TOKEN: ${{ secrets.CROSSBOW_GITHUB_TOKEN }} | ||
run: | | ||
archery trigger-bot \ | ||
--event-name ${{ github.event_name }} \ | ||
--event-payload ${{ github.event_path }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters