Only upload any artifacts to linux-nvme organization if it's NOT a fork.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
jobs:
code-coverage:
+ if: github.repository == 'linux-nvme/libnvme'
name: code coverage
runs-on: ubuntu-latest
container:
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
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: