Skip to content

Commit

Permalink
.github/workflows: Fork checks for jobs/steps that need creds
Browse files Browse the repository at this point in the history
  • Loading branch information
yondonfu committed May 11, 2021
1 parent 0df24b6 commit 81ab1cb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- master
jobs:
build:
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-16.04
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
upload:
runs-on: ubuntu-18.04
needs: [build, test]
if: github.repository == 'livepeer/go-livepeer'
if: github.event.pull_request.head.repo.full_name == github.repository
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
shell: msys2 {0}
run: ./ci_env.sh make livepeer livepeer_cli livepeer_bench livepeer_router
- name: Upload build
if: github.event.pull_request.head.repo.full_name == github.repository
shell: msys2 {0}
env:
GHA_REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.ref }}
Expand Down

0 comments on commit 81ab1cb

Please sign in to comment.