From cfc18ee1a4ebcda5fac83623dc9ae91455126379 Mon Sep 17 00:00:00 2001 From: Jacob MacDonald Date: Wed, 14 Aug 2024 11:29:46 -0700 Subject: [PATCH] add health check job (#2266) This should cut down on the number of comments we need to leave regarding changelog updates etc. --- .github/workflows/health.yaml | 10 ++++++++++ .github/workflows/post_summaries.yaml | 18 ++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .github/workflows/health.yaml create mode 100644 .github/workflows/post_summaries.yaml 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