covector comment on forks #32
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: 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" |