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
|
|
|
|
|
2024-05-27 01:17:27 +00:00
|
|
|
- uses: cachix/cachix-action@v15
|
2023-11-03 14:59:17 +00:00
|
|
|
with:
|
|
|
|
name: nyx
|
|
|
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
|
|
|
|
|
|
|
- name: Update npins
|
|
|
|
run: nix run nixpkgs#npins update
|
|
|
|
|
2023-11-06 01:29:13 +00:00
|
|
|
- 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
|