From 233859dd1a1bb32164a027c76e90c7299e8042b1 Mon Sep 17 00:00:00 2001 From: Moritz Date: Mon, 15 Apr 2024 13:28:22 +0200 Subject: [PATCH 1/2] Add Health workflow --- .github/workflows/health.yaml | 12 ++++++++++++ .github/workflows/post_summaries.yaml | 17 +++++++++++++++++ 2 files changed, 29 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 00000000..3c3ce288 --- /dev/null +++ b/.github/workflows/health.yaml @@ -0,0 +1,12 @@ +name: Health +on: + pull_request: + branches: [ master ] + types: [opened, synchronize, reopened, labeled, unlabeled] +jobs: + health: + uses: dart-lang/ecosystem/.github/workflows/health.yaml@9fabe464ea1d8408774de74d2ac759c1f90ae480 + with: + checks: "version,changelog,license,do-not-submit,breaking,coverage,leaking" + permissions: + pull-requests: write \ No newline at end of file diff --git a/.github/workflows/post_summaries.yaml b/.github/workflows/post_summaries.yaml new file mode 100644 index 00000000..9cf89491 --- /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 \ No newline at end of file From 12ffe3728edde47c226b9ea8469d56f89e3f8cb6 Mon Sep 17 00:00:00 2001 From: Moritz Date: Mon, 15 Apr 2024 13:30:05 +0200 Subject: [PATCH 2/2] Remove license check --- .github/workflows/health.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/health.yaml b/.github/workflows/health.yaml index 3c3ce288..9d32c209 100644 --- a/.github/workflows/health.yaml +++ b/.github/workflows/health.yaml @@ -7,6 +7,6 @@ jobs: health: uses: dart-lang/ecosystem/.github/workflows/health.yaml@9fabe464ea1d8408774de74d2ac759c1f90ae480 with: - checks: "version,changelog,license,do-not-submit,breaking,coverage,leaking" + checks: "version,changelog,do-not-submit,breaking,coverage,leaking" permissions: pull-requests: write \ No newline at end of file