diff --git a/.github/workflows/health.yaml b/.github/workflows/health.yaml new file mode 100644 index 000000000..36b39b865 --- /dev/null +++ b/.github/workflows/health.yaml @@ -0,0 +1,10 @@ +name: Health +on: + pull_request: + branches: [ main, master ] + types: [opened, synchronize, reopened, labeled, unlabeled] +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..9be7d5d15 --- /dev/null +++ b/.github/workflows/post_summaries.yaml @@ -0,0 +1,18 @@ +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