add(ci): Check that dependencies have all been published to crates.io on release PRs #2059
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workflow patches for skipping Google Cloud docs updates on PRs from external repositories. | |
name: Docs | |
# Run on PRs from external repositories, let them pass, and then GitHub's Merge Queue will check them. | |
# GitHub doesn't support filtering workflows by source branch names, so we have to do it for each | |
# job. | |
on: | |
pull_request: | |
# IMPORTANT | |
# | |
# The job names in `docs-deploy-firebase.yml`, `docs-deploy-firebase.patch.yml` and | |
# `docs-deploy-firebase.patch-external.yml` must be kept in sync. | |
jobs: | |
build-docs-book: | |
name: Build and Deploy Zebra Book Docs | |
# Only run on PRs from external repositories. | |
if: ${{ startsWith(github.event_name, 'pull') && github.event.pull_request.head.repo.fork }} | |
runs-on: ubuntu-latest | |
steps: | |
- run: 'echo "Skipping job on fork"' | |
build-docs-internal: | |
name: Build and Deploy Zebra Internal Docs | |
# This dependency allows all these jobs to depend on a single condition, making it easier to | |
# change. | |
needs: build-docs-book | |
runs-on: ubuntu-latest | |
steps: | |
- run: 'echo "Skipping job on fork"' |