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>
pull/11639/head
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:
name: lint and publish
runs-on: ubuntu-latest
if: github.repository_owner == 'prometheus'
steps:
- uses: actions/checkout@v3
- uses: bufbuild/buf-setup-action@v1.13.1

View File

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

View File

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