Synchronize upstream inputs #48
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: Synchronize upstream inputs | |
on: | |
workflow_dispatch: | |
inputs: | |
input: | |
type: string | |
description: flake input to be synced | |
required: true | |
jobs: | |
sync-upstream: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@main | |
with: | |
# ref: master | |
# submodules: true | |
token: "${{ secrets.GITHUB_TOKEN }}" | |
- uses: DeterminateSystems/nix-installer-action@main | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- uses: DeterminateSystems/flake-checker-action@main | |
- name: update flake upstream input | |
shell: bash | |
run: | | |
nix flake lock --update-input ${{ inputs.input }} | |
- uses: EndBug/add-and-commit@main | |
with: | |
add: flake.lock | |
commit: --signoff | |
message: "chore(flake): update flake.lock to sync input.${{ inputs.input }}" |