2023-11-03 08:30:38 +00:00
|
|
|
name: Update flake
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: "0 0 * * 0" # weekly
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
update:
|
|
|
|
if: github.repository == 'notashelf/nyxpkgs'
|
|
|
|
runs-on: ubuntu-latest
|
2023-11-05 08:36:13 +00:00
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
2023-11-03 08:30:38 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-11-03 11:37:18 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-11-03 08:30:38 +00:00
|
|
|
|
|
|
|
- uses: DeterminateSystems/nix-installer-action@main
|
|
|
|
|
|
|
|
- uses: cachix/cachix-action@v12
|
|
|
|
with:
|
2023-11-03 11:36:31 +00:00
|
|
|
name: nyxpkgs
|
2023-11-03 08:30:38 +00:00
|
|
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
|
|
|
|
|
|
|
- run: nix flake update
|
|
|
|
|
2023-11-03 11:37:14 +00:00
|
|
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
2023-11-03 08:30:38 +00:00
|
|
|
with:
|
|
|
|
commit_message: "Update flake"
|
|
|
|
|
|
|
|
build:
|
|
|
|
needs: update
|
|
|
|
uses: ./.github/workflows/build.yml
|
|
|
|
secrets: inherit
|