Skip to content

Commit f166a05

Browse files
authored
use the post_summaries workflow when publishing (#180)
1 parent cba1ed6 commit f166a05

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

.github/workflows/post_summaries.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# A CI configuration to post comments to PRs.
2+
#
3+
# This workflow will have permissions to create comments on the PR even if the
4+
# original workflow couldn't.
5+
6+
name: Comment on the pull request
7+
8+
on:
9+
workflow_run:
10+
workflows:
11+
- Publish
12+
types:
13+
- completed
14+
15+
jobs:
16+
upload:
17+
uses: dart-lang/ecosystem/.github/workflows/post_summaries.yaml@main
18+
permissions:
19+
pull-requests: write

.github/workflows/publish.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ jobs:
1212
publish:
1313
if: ${{ github.repository_owner == 'dart-lang' }}
1414
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main
15-
permissions:
16-
id-token: write # Required for authentication using OIDC
17-
pull-requests: write # Required for writing the pull request note
15+
with:
16+
write-comments: false

0 commit comments

Comments
 (0)