stop github actions from sending me mail

Currently github actions keep sending me mails about things that should
only run on the prometheus organisation actions. This change makes sure
to check who owns the repository before running the CI workflow.

Signed-off-by: Francis Begyn <francis@begyn.be>
This commit is contained in:
Francis Begyn 2022-11-12 20:19:33 +01:00
parent 4b4939fa37
commit 9e5cc340c3
3 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,7 @@ jobs:
buf: buf:
name: lint and publish name: lint and publish
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository_owner == 'prometheus'
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: bufbuild/buf-setup-action@v1.13.1 - uses: bufbuild/buf-setup-action@v1.13.1

View File

@ -14,6 +14,7 @@ concurrency:
jobs: jobs:
action: action:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository_owner == 'prometheus'
steps: steps:
- uses: dessant/lock-threads@v4 - uses: dessant/lock-threads@v4
with: with:

View File

@ -6,6 +6,7 @@ on:
jobs: jobs:
repo_sync: repo_sync:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository_owner == 'prometheus'
container: container:
image: quay.io/prometheus/golang-builder image: quay.io/prometheus/golang-builder
steps: steps: