Only upload any artifacts to linux-nvme organization if it's NOT a fork.
Signed-off-by: Daniel Wagner <dwagner@suse.de>
name: deploy AppImage
runs-on: ubuntu-latest
needs: build-appimage
- if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
+ if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'linux-nvme/nvme-cli' }}
steps:
- name: Download artifact
uses: dawidd6/action-download-artifact@v2
jobs:
code-coverage:
+ if: github.repository == 'linux-nvme/nvme-cli'
name: code coverage
runs-on: ubuntu-latest
container:
jobs:
build:
runs-on: ubuntu-latest
- if: startsWith(github.ref, 'refs/tags/v')
+ if: startsWith(github.ref, 'refs/tags/v') && github.repository == 'linux-nvme/nvme-cli'
permissions:
contents: write
steps: