diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 901f1f99..4d0b5105 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -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