Trigger GHA only on the original repo

This commit is contained in:
Yuki Okushi 2021-03-12 08:21:10 +09:00 committed by Joshua Nelson
parent 90e1d1fa43
commit 5385f4f067
2 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,7 @@ on:
jobs:
ci:
if: github.repository == 'rust-lang/rustc-dev-guide'
runs-on: ubuntu-latest
env:
MDBOOK_VERSION: 0.4.7
@ -63,7 +64,7 @@ jobs:
run: mdbook build
- name: Deploy to gh-pages
if: github.event_name == 'push' && github.repository == 'rust-lang/rustc-dev-guide'
if: github.event_name == 'push'
run: |
touch "${{ env.DEPLOY_DIR }}/.nojekyll"
cp CNAME "${{ env.DEPLOY_DIR }}"

View File

@ -10,6 +10,7 @@ on:
jobs:
date-check:
if: github.repository == 'rust-lang/rustc-dev-guide'
runs-on: ubuntu-latest
steps: