Commit e72af290 by Edward Thomson

actions: limit secheduled workflows to our main repo

Only run scheduled workflows on the main repository; prevents people
from using build minutes on their forks.
parent 3847522e
...@@ -11,6 +11,10 @@ jobs: ...@@ -11,6 +11,10 @@ jobs:
# targets and their details. Then we build either in a docker container # targets and their details. Then we build either in a docker container
# (Linux) or on the actual hosts (macOS, Windows). # (Linux) or on the actual hosts (macOS, Windows).
build: build:
# Only run scheduled workflows on the main repository; prevents people
# from using build minutes on their forks.
if: github.repository == 'libgit2/libgit2'
strategy: strategy:
matrix: matrix:
platform: platform:
......
...@@ -10,6 +10,10 @@ env: ...@@ -10,6 +10,10 @@ env:
jobs: jobs:
analyze: analyze:
# Only run scheduled workflows on the main repository; prevents people
# from using build minutes on their forks.
if: github.repository == 'libgit2/libgit2'
name: Analyze name: Analyze
runs-on: ubuntu-latest runs-on: ubuntu-latest
...@@ -30,7 +34,7 @@ jobs: ...@@ -30,7 +34,7 @@ jobs:
mkdir build mkdir build
cd build cd build
cmake .. -DREGEX_BACKEND=pcre -DDEPRECATE_HARD=ON -DUSE_BUNDLED_ZLIB=ON cmake .. -DREGEX_BACKEND=pcre -DDEPRECATE_HARD=ON -DUSE_BUNDLED_ZLIB=ON
cmake --build . cmake --build .
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1 uses: github/codeql-action/analyze@v1
...@@ -15,6 +15,10 @@ jobs: ...@@ -15,6 +15,10 @@ jobs:
# targets and their details. Then we build either in a docker container # targets and their details. Then we build either in a docker container
# (Linux) or on the actual hosts (macOS, Windows). # (Linux) or on the actual hosts (macOS, Windows).
build: build:
# Only run scheduled workflows on the main repository; prevents people
# from using build minutes on their forks.
if: github.repository == 'libgit2/libgit2'
strategy: strategy:
matrix: matrix:
platform: platform:
...@@ -321,6 +325,10 @@ jobs: ...@@ -321,6 +325,10 @@ jobs:
shell: bash shell: bash
coverity: coverity:
# Only run scheduled workflows on the main repository; prevents people
# from using build minutes on their forks.
if: github.repository == 'libgit2/libgit2'
name: Coverity name: Coverity
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment