Skip to content

Commit

Permalink
Merge pull request #1792 from GaloisInc/tidy-ci-in-forks
Browse files Browse the repository at this point in the history
Check the repository owner in CI tasks
  • Loading branch information
sauclovian-g authored Jan 30, 2025
2 parents d108257 + cd6ce56 commit 3a8dfb6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ jobs:
- if: runner.os == 'Windows'
run: .github/wix.ps1

- if: runner.os == 'Windows' && github.event.pull_request.head.repo.fork == false
- if: runner.os == 'Windows' && github.event.pull_request.head.repo.fork == false && github.repository_owner == 'GaloisInc'
shell: bash
env:
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
Expand All @@ -212,7 +212,7 @@ jobs:
OS_TAG: ${{ matrix.os }}
ARCH_TAG: ${{ runner.arch }}

- if: github.event.pull_request.head.repo.fork == false
- if: github.event.pull_request.head.repo.fork == false && github.repository_owner == 'GaloisInc'
shell: bash
env:
SIGNING_PASSPHRASE: ${{ secrets.SIGNING_PASSPHRASE }}
Expand Down Expand Up @@ -413,7 +413,7 @@ jobs:
build-push-image:
runs-on: ubuntu-22.04
needs: [config]
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || needs.config.outputs.release == 'true'
if: (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || needs.config.outputs.release == 'true') && github.repository_owner == 'GaloisInc'
strategy:
fail-fast: false
matrix:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
nix_path: nixpkgs=channel:nixos-23.05
- name: build PDF docs
if: github.event.pull_request.head.repo.fork == false
if: github.event.pull_request.head.repo.fork == false && github.repository_owner == 'GaloisInc'
uses: docker://pandoc/latex:2.9.2
with:
args: >-
Expand All @@ -48,7 +48,7 @@ jobs:
--run 'make html'
build-pages-docs:
# Do not run this on forks:
if: github.event.pull_request.head.repo.fork == false
if: github.event.pull_request.head.repo.fork == false && github.repository_owner == 'GaloisInc'
runs-on: ubuntu-latest
# The public interface should then allow the user to browse the cryptol
# documentation at the master branch, but also the documentation associated
Expand Down

0 comments on commit 3a8dfb6

Please sign in to comment.