configuration.nix/.forgejo/workflows/update-inputs.yml
2024-10-30 23:07:06 +05:30

31 lines
887 B
YAML

name: Update inputs
on:
schedule:
- cron: "0 0 * * 5"
workflow_dispatch:
jobs:
update-inputs:
runs-on: docker
container:
image: ghcr.io/catthehacker/ubuntu:act-22.04
name: Update Inputs
steps:
- uses: https://github.com/actions/checkout@v4
with:
token: ${{ github.token }}
ref: ${{ github.head_ref }}
- uses: https://github.com/cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
github_access_token: ${{ github.token }}
- name: Update inputs
run: |
nix flake update --access-tokens "github.com=${{ secrets.GH_ACCESS_TOKEN }}"
- name: Commit changes
uses: https://github.com/EndBug/add-and-commit@v9
with:
message: 'Actions: Update Inputs'
default_author: user_info
add: 'flake.lock'