Skip to content

Commit

Permalink
ci: only validate sources on pushes to main
Browse files Browse the repository at this point in the history
  • Loading branch information
getchoo committed Apr 29, 2024
1 parent b88fd06 commit 3fa17dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ jobs:
name: Check formatting
runs-on: ubuntu-latest

permissions:
contents: read

steps:
- uses: actions/checkout@v4

Expand All @@ -34,9 +31,6 @@ jobs:
name: Test Modules
runs-on: ubuntu-latest

permissions:
contents: read

steps:
- uses: actions/checkout@v4

Expand All @@ -48,4 +42,4 @@ jobs:

- name: Run VM
run: |
nix build -L --show-trace ./dev#checks.x86_64-linux.module-vm-test
nix build --print-build-logs --show-trace ./dev#checks.x86_64-linux.module-vm-test
2 changes: 1 addition & 1 deletion .github/workflows/update-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Build & update docs
run: |
for module in "nixos" "home-manager"; do
nix build -L --show-trace ./dev#"$module"-doc
nix build --print-build-logs --show-trace ./dev#"$module"-doc
cat result > docs/"$module"-options.md
rm result
done
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/validate-sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
paths:
- '_sources/**'
- 'nvfetcher.toml'
branches: [main]
pull_request:
paths:
- '_sources/**'
Expand Down

0 comments on commit 3fa17dd

Please sign in to comment.