Skip to content

Commit e8129ee

Browse files
JohnTitorJoshua Nelson
authored and
Joshua Nelson
committed
Trigger GHA only on the original repo
1 parent ccc286b commit e8129ee

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/ci.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111

1212
jobs:
1313
ci:
14+
if: github.repository == 'rust-lang/rustc-dev-guide'
1415
runs-on: ubuntu-latest
1516
env:
1617
MDBOOK_VERSION: 0.4.7
@@ -63,7 +64,7 @@ jobs:
6364
run: mdbook build
6465

6566
- name: Deploy to gh-pages
66-
if: github.event_name == 'push' && github.repository == 'rust-lang/rustc-dev-guide'
67+
if: github.event_name == 'push'
6768
run: |
6869
touch "${{ env.DEPLOY_DIR }}/.nojekyll"
6970
cp CNAME "${{ env.DEPLOY_DIR }}"

.github/workflows/date-check.yml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010

1111
jobs:
1212
date-check:
13+
if: github.repository == 'rust-lang/rustc-dev-guide'
1314
runs-on: ubuntu-latest
1415

1516
steps:

0 commit comments

Comments
 (0)