Skip to content

Commit

Permalink
ci: disable workflows in forks
Browse files Browse the repository at this point in the history
(cherry picked from commit 4798777)
  • Loading branch information
galargh authored and guseggert committed Jun 8, 2022
1 parent b0ba4a4 commit 165a80f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: "CodeQL"

on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
Expand All @@ -12,6 +13,7 @@ on:

jobs:
analyze:
if: github.repository == 'ipfs/go-ipfs' || github.event_name == 'workflow_dispatch'
name: Analyze
runs-on: ubuntu-latest

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:

jobs:
push_to_registry:
if: github.repository == 'ipfs/go-ipfs' || github.event_name == 'workflow_dispatch'
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sync-release-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ concurrency:

jobs:
sync-github-and-dist-ipfs-io:
if: github.repository == 'ipfs/go-ipfs' || github.event_name == 'workflow_dispatch'
runs-on: "ubuntu-latest"
steps:
- uses: ipfs/download-ipfs-distribution-action@v1
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/testground-on-push.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
---
name: Testground PR Checker

on: [push]
on:
workflow_dispatch:
push:


jobs:
testground:
if: github.repository == 'ipfs/go-ipfs' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
name: ${{ matrix.composition_file }}
strategy:
Expand Down

0 comments on commit 165a80f

Please sign in to comment.