-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nix flake update and github actions for that
- Loading branch information
Showing
4 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: nix flake update | ||
on: | ||
schedule: | ||
- cron: "0 0 * * 5" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: cachix/install-nix-action@v20 | ||
with: | ||
gitub_access_token: ${{ secrets.GITHUB_TOKEN }} | ||
- run: nix flake update | ||
- name: commit and push | ||
run: | | ||
git config user.name 'GitHub Actions' | ||
git config user.email '[email protected]' | ||
git add flake.lock | ||
git commit -am "nix flake update" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: nixfmt | ||
on: | ||
push: | ||
|
||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: cachix/install-nix-action@v20 | ||
- run: "nix develop --command nixfmt */*.nix" | ||
- name: commit and push | ||
run: | | ||
if git diff --exit-code; then | ||
echo 'no changes!' | ||
else | ||
git config user.name 'GitHub Actions' | ||
git config user.email '[email protected]' | ||
git add . | ||
git commit -am "nixfmt" | ||
git push | ||
fi |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,7 @@ | |
nixfmt-rfc-style | ||
govulncheck | ||
nix-prefetch | ||
act | ||
]; | ||
}; | ||
}; | ||
|