Trigger GHA only on the original repo
This commit is contained in:
parent
90e1d1fa43
commit
5385f4f067
|
|
@ -11,6 +11,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ci:
|
ci:
|
||||||
|
if: github.repository == 'rust-lang/rustc-dev-guide'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
MDBOOK_VERSION: 0.4.7
|
MDBOOK_VERSION: 0.4.7
|
||||||
|
|
@ -63,7 +64,7 @@ jobs:
|
||||||
run: mdbook build
|
run: mdbook build
|
||||||
|
|
||||||
- name: Deploy to gh-pages
|
- name: Deploy to gh-pages
|
||||||
if: github.event_name == 'push' && github.repository == 'rust-lang/rustc-dev-guide'
|
if: github.event_name == 'push'
|
||||||
run: |
|
run: |
|
||||||
touch "${{ env.DEPLOY_DIR }}/.nojekyll"
|
touch "${{ env.DEPLOY_DIR }}/.nojekyll"
|
||||||
cp CNAME "${{ env.DEPLOY_DIR }}"
|
cp CNAME "${{ env.DEPLOY_DIR }}"
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
date-check:
|
date-check:
|
||||||
|
if: github.repository == 'rust-lang/rustc-dev-guide'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue