rose-pine-nix/.github/workflows/validate-sources.yml
seth 5b5648c10e
chore(modules): factor out option doc generation (#152)
* chore(modules): factor out option doc generation

* ci: only validate sources on pushes to main
2024-04-29 16:21:14 -04:00

33 lines
705 B
YAML

name: Validate sources
# Per CONTRIBUTING.md, we do not accept unofficial ports. This enforces
# that policy and ensures all sources are only from the official GitHub org
on:
push:
paths:
- '_sources/**'
- 'nvfetcher.toml'
branches: [main]
pull_request:
paths:
- '_sources/**'
- 'nvfetcher.toml'
workflow_dispatch:
jobs:
check:
name: Check for external repositories
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v26
- name: Run check
run: |
set -e
nix eval --file ./.github/checkSources.nix