Skip to content

Commit 4798777

Browse files
galarghaschmahmann
authored andcommitted
ci: disable workflows in forks
1 parent 6a4ee0a commit 4798777

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

.github/workflows/codeql-analysis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name: "CodeQL"
33

44
on:
5+
workflow_dispatch:
56
push:
67
branches: [ master ]
78
pull_request:
@@ -12,6 +13,7 @@ on:
1213

1314
jobs:
1415
analyze:
16+
if: github.repository == 'ipfs/go-ipfs' || github.event_name == 'workflow_dispatch'
1517
name: Analyze
1618
runs-on: ubuntu-latest
1719

.github/workflows/docker-image.yml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111

1212
jobs:
1313
push_to_registry:
14+
if: github.repository == 'ipfs/go-ipfs' || github.event_name == 'workflow_dispatch'
1415
name: Push Docker image to Docker Hub
1516
runs-on: ubuntu-latest
1617
env:

.github/workflows/sync-release-assets.yml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ concurrency:
1111

1212
jobs:
1313
sync-github-and-dist-ipfs-io:
14+
if: github.repository == 'ipfs/go-ipfs' || github.event_name == 'workflow_dispatch'
1415
runs-on: "ubuntu-latest"
1516
steps:
1617
- uses: ipfs/download-ipfs-distribution-action@v1

.github/workflows/testground-on-push.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
---
22
name: Testground PR Checker
33

4-
on: [push]
4+
on:
5+
workflow_dispatch:
6+
push:
7+
58

69
jobs:
710
testground:
11+
if: github.repository == 'ipfs/go-ipfs' || github.event_name == 'workflow_dispatch'
812
runs-on: ubuntu-latest
913
name: ${{ matrix.composition_file }}
1014
strategy:

0 commit comments

Comments
 (0)