nixos/.forgejo/workflows/update_input.yaml
silver 702b104430 ci: more changes to see if this will help
Signed-off-by: silver <silver@skynet.ie>
2024-08-07 09:06:09 +00:00

29 lines
No EOL
773 B
YAML

name: Update_Flake
on:
workflow_dispatch:
inputs:
input_to_update:
description: 'Flake input to update'
required: true
type: string
jobs:
update:
runs-on: nix
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.PIPELINE_TOKEN }}
- run: nix flake lock --update-input "${{ inputs.input_to_update }}"
shell: bash
- uses: https://github.com/stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Updated flake for ${{ inputs.input_to_update }}"