Skip to content

Commit

Permalink
Add GitHub Actions configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
cottsay committed Aug 2, 2024
1 parent 354511d commit 2133cee
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Automated Review for rosdistro
description: >-
Generate automated review for rosdistro index and rosdep database changes
inputs:
token:
description: GitHub Authentication Token
required: true

runs:
using: composite
steps:
- name: Set up rosdistro-reviewer
shell: bash
run: |
python -m venv .rosdistro-reviewer-venv
. .rosdistro-reviewer-venv/bin/activate
python -m pip install "${{ github.action_path }}[github]" --quiet
- name: Generate automated review
shell: bash
run: |
. .rosdistro-reviewer-venv/bin/activate
rosdistro-reviewer \
--log-base /dev/null \
--target-ref ${{ github.event.pull_request.base.sha }} \
--head-ref ${{ github.event.pull_request.head.sha }} \
--github-pull-request \
${{ github.repository }}#${{ github.event.pull_request.number }}
env:
GITHUB_TOKEN: ${{ inputs.token }}

0 comments on commit 2133cee

Please sign in to comment.