flake: add update-inputs workflow for forgejo
This commit is contained in:
parent
79efbf9ea2
commit
d2556d4591
1 changed files with 32 additions and 0 deletions
32
.forgejo/workflows/update-inputs.yml
Normal file
32
.forgejo/workflows/update-inputs.yml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
name: Update inputs
|
||||||
|
|
||||||
|
runs-on: ubuntu
|
||||||
|
container:
|
||||||
|
image: node:20-bookworm
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * 5"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-inputs:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Update Inputs
|
||||||
|
steps:
|
||||||
|
- uses: https://github.com/actions/checkout@v3
|
||||||
|
with:
|
||||||
|
token: ${{ github.token }}
|
||||||
|
ref: ${{ github.head_ref }}
|
||||||
|
- uses: https://github.com/cachix/install-nix-action@v20
|
||||||
|
with:
|
||||||
|
github_access_token: ${{ github.token }}
|
||||||
|
- name: Update inputs
|
||||||
|
run: |
|
||||||
|
nix flake update
|
||||||
|
- name: Commit changes
|
||||||
|
uses: https://github.com/EndBug/add-and-commit@v9
|
||||||
|
with:
|
||||||
|
message: 'Actions: Update Inputs'
|
||||||
|
default_author: github_actions
|
||||||
|
add: 'flake.lock'
|
Loading…
Reference in a new issue