2023-11-03 08:30:38 +00:00
|
|
|
name: Update flake
|
|
|
|
|
|
|
|
on:
|
2023-11-05 18:24:22 +00:00
|
|
|
workflow_dispatch:
|
2023-11-03 08:30:38 +00:00
|
|
|
schedule:
|
|
|
|
- cron: "0 0 * * 0" # weekly
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
update:
|
|
|
|
if: github.repository == 'notashelf/nyxpkgs'
|
|
|
|
runs-on: ubuntu-latest
|
2023-11-12 01:26:26 +00:00
|
|
|
|
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-05 17:54:57 +00:00
|
|
|
with:
|
|
|
|
token: "${{ secrets.GH_TOKEN}}"
|
2023-11-03 08:30:38 +00:00
|
|
|
|
|
|
|
- uses: DeterminateSystems/nix-installer-action@main
|
|
|
|
|
2024-01-15 01:38:44 +00:00
|
|
|
- uses: cachix/cachix-action@v14
|
2023-11-03 08:30:38 +00:00
|
|
|
with:
|
2023-11-12 01:26:26 +00:00
|
|
|
name: nyx
|
2023-11-03 08:30:38 +00:00
|
|
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
|
|
|
|
2023-11-12 14:04:40 +00:00
|
|
|
- name: Update flake
|
2023-11-12 01:26:26 +00:00
|
|
|
run: nix flake update
|
2023-11-03 08:30:38 +00:00
|
|
|
|
2023-11-03 11:37:14 +00:00
|
|
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
2023-11-03 08:30:38 +00:00
|
|
|
with:
|
2023-11-05 17:54:57 +00:00
|
|
|
commit_message: "[CI]: update flake inputs"
|
|
|
|
push_options: "--force"
|
|
|
|
commit_user_name: GitHub Actions
|
2023-11-03 08:30:38 +00:00
|
|
|
|
|
|
|
build:
|
|
|
|
needs: update
|
|
|
|
uses: ./.github/workflows/build.yml
|
|
|
|
secrets: inherit
|