diff options
author | mattip <matti.picus@gmail.com> | 2022-01-25 09:51:43 +0200 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2022-01-25 09:51:43 +0200 |
commit | ced1114d0479aafbb91d8decc9efb0f08a2036d3 (patch) | |
tree | 0797f2411fcda28bfe71a2a6ca27803c719ec044 /.github | |
parent | aa519855ccffa3b1f5d611e5135d9d28aff22641 (diff) | |
download | numpy-ced1114d0479aafbb91d8decc9efb0f08a2036d3.tar.gz |
BUILD: do not run workflows on forks
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/circleci.yml | 24 | ||||
-rw-r--r-- | .github/workflows/cygwin.yml | 4 |
2 files changed, 18 insertions, 10 deletions
diff --git a/.github/workflows/circleci.yml b/.github/workflows/circleci.yml index de02ac6d3..153e46d80 100644 --- a/.github/workflows/circleci.yml +++ b/.github/workflows/circleci.yml @@ -1,12 +1,16 @@ +# To enable this workflow on a fork, comment out: +# +# if: github.repository == 'numpy/numpy' on: [status] jobs: - circleci_artifacts_redirector_job: - runs-on: ubuntu-latest - name: Run CircleCI artifacts redirector - steps: - - name: GitHub Action step - uses: larsoner/circleci-artifacts-redirector-action@master - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - artifact-path: 0/doc/build/html/index.html - circleci-jobs: build + circleci_artifacts_redirector_job: + runs-on: ubuntu-latest + name: Run CircleCI artifacts redirector + # if: github.repository == 'numpy/numpy' + steps: + - name: GitHub Action step + uses: larsoner/circleci-artifacts-redirector-action@master + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + artifact-path: 0/doc/build/html/index.html + circleci-jobs: build diff --git a/.github/workflows/cygwin.yml b/.github/workflows/cygwin.yml index fdc776785..8bf7bd1a6 100644 --- a/.github/workflows/cygwin.yml +++ b/.github/workflows/cygwin.yml @@ -1,3 +1,6 @@ +# To enable this workflow on a fork, comment out: +# +# if: github.repository == 'numpy/numpy' name: Test on Cygwin on: push: @@ -9,6 +12,7 @@ on: jobs: cygwin_build_test: runs-on: windows-latest + if: github.repository == 'numpy/numpy' steps: - uses: actions/checkout@v2 with: |