Skip to content

Update database creation and add GitHub action to summarise database changes #4

Update database creation and add GitHub action to summarise database changes

Update database creation and add GitHub action to summarise database changes #4

name: Add comment to PRs displaying changes to the database
on:
pull_request:
jobs:
add-comment:
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Add comment
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
which pip
pip install python-packages/input4MIPs-CVs
BODY=`python -c 'print("Hello world\n\nGoodbye world")'`
gh pr comment "$PR_NUMBER" --body "$BODY"