Skip to content

GHA Autofill experiment #9

GHA Autofill experiment

GHA Autofill experiment #9

Workflow file for this run

name: Prepare autofilled template for library metadata
on:
issue_comment:
types: [created]
jobs:
Autofill:
# Only run if comment is on a PR with the main repo, and if it contains the magic keywords
if: >
contains(github.event.comment.html_url, '/pull/') &&
startsWith(github.event.comment.body, '@spaam-bot please autofill') &&
github.repository == 'SPAAM-community/AncientMetagenomeDir'
runs-on: ubuntu-latest
steps:
# indication that the process has started
- name: React on comment
uses: peter-evans/create-or-update-comment@v2
with:
comment-id: ${{ github.event.comment.id }}
reactions: eyes
token: ${{ secrets.GITHUB_TOKEN }}
# install AMDirT
- uses: actions/setup-python@v4
with:
python-version: "3.9"
architecture: "x64"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install amdirt==1.5.0
pip install jsonschema==4.17.0
# Post results
- name: Post PR comment
uses: marocchino/sticky-pull-request-comment@v2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
message: "Success!"