From 7a5892e26295868f5ac4c6e96e9f391f69c817b7 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 6 Feb 2022 15:47:58 +0900 Subject: [PATCH] Check repository owner before auto-create PR --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b2e1890c32..dfb7eea4ff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -242,7 +242,7 @@ jobs: run: rustup update nightly && rustup default nightly - run: ci/no_atomic_cas.sh - run: git add -N . && git diff --exit-code - if: github.event_name != 'schedule' + if: github.repository_owner != 'rust-lang' || github.event_name != 'schedule' - id: diff run: | git config user.name "Taiki Endo" @@ -253,7 +253,7 @@ jobs: git commit -m "Update no_atomic_cas.rs" echo "::set-output name=success::false" fi - if: github.event_name == 'schedule' + if: github.repository_owner == 'rust-lang' && github.event_name == 'schedule' - uses: peter-evans/create-pull-request@v3 with: title: Update no_atomic_cas.rs @@ -264,7 +264,7 @@ jobs: [1]: https://github.com/peter-evans/create-pull-request [2]: https://github.com/peter-evans/create-pull-request/blob/HEAD/docs/concepts-guidelines.md#workarounds-to-trigger-further-workflow-runs branch: update-no-atomic-cas-rs - if: github.event_name == 'schedule' && steps.diff.outputs.success == 'false' + if: github.repository_owner == 'rust-lang' && github.event_name == 'schedule' && steps.diff.outputs.success == 'false' miri: name: cargo miri test