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:
|
||||
deploy:
|
||||
if: github.repository == 'nix-community/nixvim'
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
|
|
|
@ -5,6 +5,7 @@ on:
|
|||
- "main"
|
||||
jobs:
|
||||
flakehub-publish:
|
||||
if: github.repository == 'nix-community/nixvim'
|
||||
runs-on: "ubuntu-latest"
|
||||
permissions:
|
||||
id-token: "write"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue