ci: check repo before running publish jobs

This commit is contained in:
Matt Sturgeon 2025-05-29 12:33:12 +01:00
parent 60f1c85237
commit 64dea7008f
3 changed files with 3 additions and 0 deletions

View file

@ -22,6 +22,7 @@ concurrency:
jobs:
deploy:
if: github.repository == 'nix-community/nixvim'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

View file

@ -5,6 +5,7 @@ on:
- "main"
jobs:
flakehub-publish:
if: github.repository == 'nix-community/nixvim'
runs-on: "ubuntu-latest"
permissions:
id-token: "write"

View file

@ -10,6 +10,7 @@ on:
required: true
jobs:
publish-flake:
if: github.event_name != 'push' || github.repository == 'nix-community/nixvim'
runs-on: ubuntu-latest
permissions:
id-token: "write"