GoogleCloudPlatform / samples-style-guide

Guidelines on writing effective Google Cloud samples.
https://googlecloudplatform.github.io/samples-style-guide/
Apache License 2.0
11 stars 19 forks source link

Required preview check: fallback for build exclusions #59

Closed grayside closed 2 years ago

grayside commented 2 years ago

deploy only runs on push-to-main or in preview on PRs that change files used in the build (via an explicit paths-ignore config), such as .github/labels.yml.

To make our deploy required but not blocking PRs unrelated to the build, GitHub docs have a suggestion: create a separate workflow that has a job with the same name, triggers on the conditions excluded by the required check, and is effectively a no-op confirming no build necessary.