Update Index #6141
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 Index" | |
permissions: | |
contents: write | |
on: | |
workflow_dispatch: | |
concurrency: | |
group: flake-update | |
cancel-in-progress: true | |
jobs: | |
update_inputs: | |
name: "Update and sync index flake" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
with: | |
ref: master | |
- name: "Install nix" | |
uses: cachix/install-nix-action@v18 | |
with: | |
extra_nix_config: | | |
access-tokens = github.com=${{ secrets.NIX_GIT_TOKEN }} | |
- name: Git Configure | |
run: | | |
git config --global user.name 'Flox Updater' | |
git config --global user.email '[email protected]' | |
# TODO: import and use flox? | |
git config --global url."https://${{ secrets.NIX_GIT_TOKEN }}@github.com".insteadOf ssh://[email protected] | |
- name: Update Flake | |
run: | | |
nix flake update --commit-lock-file --show-trace -vv | |
git push |