workflows: Update autogenerated configs alongside the flake.lock (#555)

This commit is contained in:
traxys 2023-08-28 13:07:30 +02:00 committed by GitHub
parent 2fea694de0
commit 1d48986c41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,8 @@ jobs:
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
@ -18,3 +20,12 @@ jobs:
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/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