-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
31 lines (30 loc) · 1.03 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
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 ${{ runner.temp }}/.rosdistro-reviewer-venv
. ${{ runner.temp }}/.rosdistro-reviewer-venv/bin/activate
python -m pip install "${{ github.action_path }}[github]" --quiet
- name: Generate automated review
shell: bash
run: |
. ${{ runner.temp }}/.rosdistro-reviewer-venv/bin/activate
rosdistro-reviewer \
--log-base /dev/null \
--log-level DEBUG \
--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 }}