Skip to content

Update

Update #29

Workflow file for this run

name: update-flake-lock
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: "0 12 * * SAT" # runs weekly on Saturday at noon
jobs:
lockfile:
name: Update the flake inputs and generate options
runs-on: nscloud-ubuntu-22.04-amd64-4x16
timeout-minutes: 40
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
- name: Install Nix
uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Update flake.lock
id: update
uses: DeterminateSystems/update-flake-lock@v20
with:
pr-title: "Update flake.lock"
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
- name: Update autogenerated configs
run: |
git checkout update_flake_lock_action
nix build .#autogenerated-configs
cp result/efmls-configs-tools.json ./plugins/lsp/language-servers/efmls-configs-tools.json
git add ./plugins
git commit -m "autogenerated: Update options"
git push