-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (33 loc) · 1.09 KB
/
deadnix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Deadnix
on: [push, pull_request]
env:
committer_name: Antigen
committer_email: [email protected]
jobs:
deadnix-job:
runs-on: ubuntu-latest
steps:
- name: Code checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Debug logs
run: |
echo "github.head_ref: ${{ github.head_ref }}"
echo "github.ref: ${{ github.ref }}"
echo "github.repository: ${{ github.repository }}"
echo "github.sha: ${{ github.sha }}"
printf "$ git branch --show-current > "
git branch --show-current
- name: Install Nix
uses: cachix/install-nix-action@v22
- name: Setup Cachix
uses: cachix/cachix-action@v12
with:
name: deadnix
- name: Run deadnix and publish changes if any
uses: luisnquin/deadnix-action@main
with:
author: ${{env.committer_name}} <${{env.committer_email}}>
committer: ${{env.committer_name}} <${{env.committer_email}}>
commit_message: "deadnix: removed dead code"