From 9e5cc340c3d67fb8c1ff8d1e701e68de6859b268 Mon Sep 17 00:00:00 2001 From: Francis Begyn Date: Sat, 12 Nov 2022 20:19:33 +0100 Subject: [PATCH] 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 --- .github/workflows/buf.yml | 1 + .github/workflows/lock.yml | 1 + .github/workflows/repo_sync.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/buf.yml b/.github/workflows/buf.yml index 2bfee7138..567ecc000 100644 --- a/.github/workflows/buf.yml +++ b/.github/workflows/buf.yml @@ -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 diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index 1725fb4f2..c6ac3d74e 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -14,6 +14,7 @@ concurrency: jobs: action: runs-on: ubuntu-latest + if: github.repository_owner == 'prometheus' steps: - uses: dessant/lock-threads@v4 with: diff --git a/.github/workflows/repo_sync.yml b/.github/workflows/repo_sync.yml index 37be80d45..9526cd2fe 100644 --- a/.github/workflows/repo_sync.yml +++ b/.github/workflows/repo_sync.yml @@ -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: