forked from ZcashFoundation/zebra
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow external PRs to pass Docs build and deploy
- Loading branch information
Showing
3 changed files
with
47 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# 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 Mergify 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 | ||
# | ||
# These job names must be kept in sync with the `.patch.yml` and `.yml` files. | ||
jobs: | ||
build-docs-book: | ||
name: Build and Deploy Zebra Book Docs | ||
# Only run on PRs from external repositories. | ||
# (github.ref is always a local branch, so this check will skip non-PRs as well.) | ||
if: ${{ !contains(github.head_ref || github.ref, 'refs/heads/') }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: 'echo "No build required"' | ||
|
||
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 "No build required"' |
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
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