mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
workflows: Update autogenerated configs alongside the flake.lock (#555)
This commit is contained in:
parent
2fea694de0
commit
1d48986c41
1 changed files with 11 additions and 0 deletions
11
.github/workflows/update.yml
vendored
11
.github/workflows/update.yml
vendored
|
@ -10,6 +10,8 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: DeterminateSystems/nix-installer-action@v1
|
uses: DeterminateSystems/nix-installer-action@v1
|
||||||
- name: Update flake.lock
|
- name: Update flake.lock
|
||||||
|
@ -18,3 +20,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
pr-title: "Update flake.lock"
|
pr-title: "Update flake.lock"
|
||||||
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
|
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
|
||||||
|
- name: Update autogenerated configs
|
||||||
|
run: |
|
||||||
|
git checkout update_flake_lock_action
|
||||||
|
nix build .#autogenerated-configs
|
||||||
|
cp result/rust-analyzer-config.nix ./plugins/lsp/language-servers/rust-analyzer-config.nix
|
||||||
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue