From: Daniel Wagner Date: Wed, 11 Oct 2023 10:08:54 +0000 (+0200) Subject: build: upload artifacts only for upstream repo X-Git-Tag: v1.7~55 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=0d3b74ff193211f329ae3c13756557cc612bfd76;p=users%2Fsagi%2Flibnvme.git build: upload artifacts only for upstream repo Only upload any artifacts to linux-nvme organization if it's NOT a fork. Signed-off-by: Daniel Wagner --- diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 39ea739a..3ed1f995 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -7,6 +7,7 @@ on: jobs: code-coverage: + if: github.repository == 'linux-nvme/libnvme' name: code coverage runs-on: ubuntu-latest container: diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml index d30aacc5..01a31ff9 100644 --- a/.github/workflows/release-python.yml +++ b/.github/workflows/release-python.yml @@ -51,7 +51,7 @@ jobs: upload_pypi: needs: [build_sdist] runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/v') + if: startsWith(github.ref, 'refs/tags/v') && github.repository == 'linux-nvme/libnvme' steps: - name: Check if it is a release tag id: check-tag diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 63bb5e11..d4ef0385 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ on: jobs: build: runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/v') + if: startsWith(github.ref, 'refs/tags/v') && github.repository == 'linux-nvme/libnvme' permissions: contents: write steps: