nyxexprs/.github/workflows/update-flake.yml

42 lines
885 B
YAML
Raw Normal View History

2023-11-03 08:30:38 +00:00
name: Update flake
on:
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
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
- uses: cachix/cachix-action@v12
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
- 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