Skip to content

Commit dca16fa

Browse files
committed
Do not auto-create PR on fork
1 parent a9795a9 commit dca16fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ jobs:
242242
run: rustup update nightly && rustup default nightly
243243
- run: ci/no_atomic_cas.sh
244244
- run: git add -N . && git diff --exit-code
245-
if: github.event_name != 'schedule'
245+
if: github.repository_owner != 'rust-lang' || github.event_name != 'schedule'
246246
- id: diff
247247
run: |
248248
git config user.name "Taiki Endo"
@@ -253,7 +253,7 @@ jobs:
253253
git commit -m "Update no_atomic_cas.rs"
254254
echo "::set-output name=success::false"
255255
fi
256-
if: github.event_name == 'schedule'
256+
if: github.repository_owner == 'rust-lang' && github.event_name == 'schedule'
257257
- uses: peter-evans/create-pull-request@v3
258258
with:
259259
title: Update no_atomic_cas.rs
@@ -264,7 +264,7 @@ jobs:
264264
[1]: https://github.com/peter-evans/create-pull-request
265265
[2]: https://github.com/peter-evans/create-pull-request/blob/HEAD/docs/concepts-guidelines.md#workarounds-to-trigger-further-workflow-runs
266266
branch: update-no-atomic-cas-rs
267-
if: github.event_name == 'schedule' && steps.diff.outputs.success == 'false'
267+
if: github.repository_owner == 'rust-lang' && github.event_name == 'schedule' && steps.diff.outputs.success == 'false'
268268

269269
miri:
270270
name: cargo miri test

0 commit comments

Comments
 (0)