diff --git a/.github/workflows/health.yaml b/.github/workflows/health.yaml index c8e3d7c48..36b39b865 100644 --- a/.github/workflows/health.yaml +++ b/.github/workflows/health.yaml @@ -6,3 +6,5 @@ on: jobs: health: uses: dart-lang/ecosystem/.github/workflows/health.yaml@main + permissions: + pull-requests: write diff --git a/.github/workflows/post_summaries.yaml b/.github/workflows/post_summaries.yaml new file mode 100644 index 000000000..8697d74a5 --- /dev/null +++ b/.github/workflows/post_summaries.yaml @@ -0,0 +1,17 @@ +name: Comment on the pull request + +on: + # Trigger this workflow after the Health workflow completes. This workflow will have permissions to + # do things like create comments on the PR, even if the original workflow couldn't. + workflow_run: + workflows: + - Health + - Publish + types: + - completed + +jobs: + upload: + uses: dart-lang/ecosystem/.github/workflows/post_summaries.yaml@main + permissions: + pull-requests: write