Update #221
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update | |
on: | |
workflow_dispatch: | |
inputs: | |
input: | |
required: true | |
type: string | |
workflow_call: | |
inputs: | |
input: | |
required: true | |
type: string | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v25 | |
with: | |
github_access_token: ${{secrets.GITHUB_TOKEN}} | |
extra_nix_config: | | |
access-tokens = github.com=${{secrets.PAT}} | |
- name: Update | |
run: nix flake lock --update-input ${{inputs.input}} | |
- name: Commit | |
run: | | |
git config user.name lpm-automaton | |
git config user.email [email protected] | |
git add -u | |
git commit -m "Update ${{inputs.input}}" | |
git push |