mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-04 10:06:13 +02:00
This directly reads the package.json file in pkgs.rust-analyzer.src in order to generate the list of options for rust-analyzer. This avoids the need for a generator script, and makes sure that it is always in sync.
30 lines
991 B
YAML
30 lines
991 B
YAML
name: update-flake-lock
|
|
on:
|
|
workflow_dispatch: # allows manual triggering
|
|
schedule:
|
|
- cron: "0 12 * * SAT" # runs weekly on Saturday at noon
|
|
|
|
jobs:
|
|
lockfile:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
with:
|
|
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
|
|
- name: Install Nix
|
|
uses: DeterminateSystems/nix-installer-action@v1
|
|
- 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
|