covector comment on forks #23
This file contains hidden or 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: Covector Comment | |
on: | |
workflow_run: | |
workflows: [covector] | |
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@release | |
id: covector | |
# note that this 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" |