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

42 lines
892 B
YAML
Raw Normal View History

2023-11-03 14:59:17 +00:00
name: Update packages
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *" # daily
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 14:59:17 +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 14:59:17 +00:00
- uses: DeterminateSystems/nix-installer-action@main
- uses: cachix/cachix-action@v12
with:
name: nyx
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Update npins
run: nix run nixpkgs#npins update
- uses: stefanzweifel/git-auto-commit-action@v5
2023-11-03 14:59:17 +00:00
with:
2023-11-05 17:54:57 +00:00
commit_message: "[CI]: update npins"
2023-11-03 14:59:17 +00:00
push_options: "--force"
2023-11-05 17:54:57 +00:00
commit_user_name: GitHub Actions
2023-11-03 14:59:17 +00:00
build:
needs: update
uses: ./.github/workflows/build.yml
secrets: inherit