configuration.nix/.forgejo/workflows/update-inputs.yml

31 lines
886 B
YAML
Raw Normal View History

name: Update inputs
on:
schedule:
- cron: "0 0 * * 5"
workflow_dispatch:
jobs:
update-inputs:
2024-10-30 22:42:28 +05:30
runs-on: docker
2024-10-29 22:46:50 +05:30
container:
2024-10-30 14:49:52 +05:30
image: ghcr.io/catthehacker/ubuntu:act-22.04
name: Update Inputs
steps:
2024-10-30 22:56:56 +05:30
- uses: https://github.com/actions/checkout@v4
with:
token: ${{ github.token }}
ref: ${{ github.head_ref }}
2024-10-30 14:49:52 +05:30
- uses: https://github.com/cachix/install-nix-action@v27
with:
2024-10-30 14:49:52 +05:30
nix_path: nixpkgs=channel:nixos-unstable
2024-10-31 11:24:24 +05:30
github_access_token: ${{ secrets.GH_PUBLIC_REPO_ACCESS_TOKEN }}
- name: Update inputs
run: |
2024-10-31 11:24:24 +05:30
nix flake update --access-tokens "github.com=${{ secrets.GH_PUBLIC_REPO_ACCESS_TOKEN }}"
- name: Commit changes
uses: https://github.com/EndBug/add-and-commit@v9
with:
message: 'Actions: Update Inputs'
add: 'flake.lock'