parse-command #77
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
name: parse | |
on: | |
repository_dispatch: | |
types: [parse-command] | |
jobs: | |
parse: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Fetch all history for all branches and tags. | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
python -m pip install -r workflows/requirements.parsing.txt | |
- name: Run parse command | |
id: parse | |
run: | | |
echo 'Parsing!' | |
python workflows/parse-instance-ids.py '${{ github.event.client_payload.slash_command.args.all }}' | |
- name: Add reaction | |
uses: peter-evans/create-or-update-comment@v4 | |
with: | |
token: ${{ secrets.PAT }} | |
repository: ${{ github.event.client_payload.github.payload.repository.full_name }} | |
comment-id: ${{ github.event.client_payload.github.payload.comment.id }} | |
reaction-type: hooray | |
- name: Add comment | |
uses: peter-evans/create-or-update-comment@v4 | |
with: | |
comment-id: ${{ github.event.client_payload.github.payload.comment.id }} | |
issue-number: ${{ github.event.client_payload.github.payload.issue.number }} | |
body-path: 'body.md' |