Skip to content

covector comment on forks #33

covector comment on forks

covector comment on forks #33

name: covector comment on forks
on:
workflow_run:
workflows: [covector status]
types:
- completed
# note all other permissions are set to none if not specified
permissions:
# to read the action artifacts
actions: read
# to write the comment
pull-requests: write
jobs:
download:
runs-on: ubuntu-latest
steps:
- name: dump github context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: covector status
uses: jbolda/covector/packages/action@covector-v0
# note that this check could be shifted to the job, but for future reference, we are dumping the full github context
if: github.event.workflow_run.conclusion == 'success' &&
(github.event.workflow_run.head_repository.full_name != github.repository || github.actor == 'dependabot[bot]')
with:
token: ${{ secrets.GITHUB_TOKEN }}
command: "status"