Trigger GHA only on the original repo
This commit is contained in:
parent
90e1d1fa43
commit
5385f4f067
|
|
@ -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 }}"
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ on:
|
|||
|
||||
jobs:
|
||||
date-check:
|
||||
if: github.repository == 'rust-lang/rustc-dev-guide'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
|
|
|||
Loading…
Reference in New Issue