Skip to content

Add Holothuria sanctori #65

Add Holothuria sanctori

Add Holothuria sanctori #65

Workflow file for this run

name: The EARs Reviewing bot for PRs
on:
pull_request_target:
types: [opened, reopened, synchronize, edited]
paths:
- "Assembly_Reports/**/*.pdf"
jobs:
add-label-and-find-supervisor:
runs-on: ubuntu-latest
steps:
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: 917566
private-key: ${{ secrets.APP_PRIVATE_KEY }}
owner: "ERGA-consortium"
repositories: "EARs"
- name: Checkout
uses: actions/checkout@v4
with:
ref: "main"
token: ${{ steps.generate-token.outputs.token }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r ear_bot/requirements.txt
- name: Run python script to find a reviewer
env:
GITHUB_APP_TOKEN: ${{ steps.generate-token.outputs.token }}
GITHUB_REPOSITORY: ${{ github.repository }}
PR_NUMBER: ${{ github.event.pull_request.number }}
ACTION_TYPE: ${{ github.event.action }}
run: python -u ear_bot/ear_bot_reviewer.py --supervisor