https://github.com/astro/deadnix-action
Workflow to find and delete dead nix code
https://github.com/astro/deadnix-action
action actions github nix nixos nixpkgs workflow
Last synced: 6 months ago
JSON representation
Workflow to find and delete dead nix code
- Host: GitHub
- URL: https://github.com/astro/deadnix-action
- Owner: astro
- Created: 2021-12-13T18:32:10.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-06T21:15:12.000Z (over 1 year ago)
- Last Synced: 2025-07-06T21:11:36.607Z (7 months ago)
- Topics: action, actions, github, nix, nixos, nixpkgs, workflow
- Homepage:
- Size: 21.5 KB
- Stars: 16
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# deadnix-action
Automatically creates pull requests to remove unused code in `.nix`
files
## Usage
Create a `.github/workflows/deadnix.yml` file:
```yaml
on: [push]
name: Dead code analysis
jobs:
deadnix:
name: Deadnix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
- uses: cachix/cachix-action@v14
with:
name: deadnix
- uses: astro/deadnix-action@main
```
`git add`, `git commit`, `git push`, be happy.