From aebb65cbf2457a102583f8a7fac704ddc12499fb Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Wed, 11 Jun 2025 05:36:18 -0700 Subject: [PATCH] Update publish.yaml (#789) * Update publish.yaml * cargo cult config from dart-lang/core * skip coverage check; update file headers --- .github/workflows/health.yaml | 5 +++-- .github/workflows/post_summaries.yaml | 7 ++++--- .github/workflows/publish.yaml | 12 +++++++++--- lib/src/client/query_parameter.dart | 3 ++- lib/src/client/transport/cors.dart | 3 ++- 5 files changed, 20 insertions(+), 10 deletions(-) diff --git a/.github/workflows/health.yaml b/.github/workflows/health.yaml index 3ba41f3..47da850 100644 --- a/.github/workflows/health.yaml +++ b/.github/workflows/health.yaml @@ -1,13 +1,14 @@ name: Health + on: pull_request: branches: [ master ] types: [opened, synchronize, reopened, labeled, unlabeled] + jobs: health: uses: dart-lang/ecosystem/.github/workflows/health.yaml@main with: - checks: "changelog,do-not-submit,breaking,coverage,leaking" - ignore_coverage: "example/**,interop/**" + checks: "changelog,do-not-submit,breaking,leaking" permissions: pull-requests: write diff --git a/.github/workflows/post_summaries.yaml b/.github/workflows/post_summaries.yaml index 9cf8949..02b57f5 100644 --- a/.github/workflows/post_summaries.yaml +++ b/.github/workflows/post_summaries.yaml @@ -1,8 +1,9 @@ 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. + # Trigger this workflow after the given workflows 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 @@ -14,4 +15,4 @@ jobs: upload: uses: dart-lang/ecosystem/.github/workflows/post_summaries.yaml@main permissions: - pull-requests: write \ No newline at end of file + pull-requests: write diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index f979755..46b68d0 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,12 +1,18 @@ +# A CI configuration to auto-publish pub packages. + name: Publish -permissions: - id-token: write - pull-requests: write + on: pull_request: branches: [ master ] push: tags: [ 'v[0-9]+.[0-9]+.[0-9]+' ] + jobs: publish: uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main + with: + write-comments: false + permissions: + id-token: write + pull-requests: write diff --git a/lib/src/client/query_parameter.dart b/lib/src/client/query_parameter.dart index 2bf3f21..857de71 100644 --- a/lib/src/client/query_parameter.dart +++ b/lib/src/client/query_parameter.dart @@ -1,4 +1,5 @@ -// Copyright 2018 Google Inc. All Rights Reserved. +// Copyright (c) 2018, the gRPC project authors. Please see the AUTHORS file +// for details. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/lib/src/client/transport/cors.dart b/lib/src/client/transport/cors.dart index 07763e4..1b7e469 100644 --- a/lib/src/client/transport/cors.dart +++ b/lib/src/client/transport/cors.dart @@ -1,4 +1,5 @@ -// Copyright 2018 Google Inc. All Rights Reserved. +// Copyright (c) 2018, the gRPC project authors. Please see the AUTHORS file +// for details. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.