Skip to content

Commit fa27573

Browse files
authored
(chore) covector comment on forks (#1566)
1 parent d8bfdc7 commit fa27573

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright 2019-2023 Tauri Programme within The Commons Conservancy
2+
# SPDX-License-Identifier: Apache-2.0
3+
# SPDX-License-Identifier: MIT
4+
5+
name: covector comment
6+
on:
7+
workflow_run:
8+
workflows: [covector status] # the `name` of the workflow run on `pull_request` running `status` with `comment: true`
9+
types:
10+
- completed
11+
12+
# note all other permissions are set to none if not specified
13+
# and these set the permissions for `secrets.GITHUB_TOKEN`
14+
permissions:
15+
# to read the action artifacts on `covector status` workflows
16+
actions: read
17+
# to write the comment
18+
pull-requests: write
19+
20+
jobs:
21+
download:
22+
runs-on: ubuntu-latest
23+
if: github.event.workflow_run.conclusion == 'success' &&
24+
(github.event.workflow_run.head_repository.full_name != github.repository || github.actor == 'dependabot[bot]')
25+
steps:
26+
- name: covector status
27+
uses: jbolda/covector/packages/action@covector-v0
28+
with:
29+
token: ${{ secrets.GITHUB_TOKEN }}
30+
command: "status"

0 commit comments

Comments
 (0)