mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
ci: check repo before running publish jobs
This commit is contained in:
parent
60f1c85237
commit
64dea7008f
3 changed files with 3 additions and 0 deletions
1
.github/workflows/build_documentation.yml
vendored
1
.github/workflows/build_documentation.yml
vendored
|
@ -22,6 +22,7 @@ concurrency:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
|
if: github.repository == 'nix-community/nixvim'
|
||||||
environment:
|
environment:
|
||||||
name: github-pages
|
name: github-pages
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
|
|
@ -5,6 +5,7 @@ on:
|
||||||
- "main"
|
- "main"
|
||||||
jobs:
|
jobs:
|
||||||
flakehub-publish:
|
flakehub-publish:
|
||||||
|
if: github.repository == 'nix-community/nixvim'
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
permissions:
|
permissions:
|
||||||
id-token: "write"
|
id-token: "write"
|
||||||
|
|
|
@ -10,6 +10,7 @@ on:
|
||||||
required: true
|
required: true
|
||||||
jobs:
|
jobs:
|
||||||
publish-flake:
|
publish-flake:
|
||||||
|
if: github.event_name != 'push' || github.repository == 'nix-community/nixvim'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
id-token: "write"
|
id-token: "write"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue