dont do this 3 times simultaniously
This commit is contained in:
parent
08c76f13db
commit
1bfe1d1f00
1 changed files with 4 additions and 1 deletions
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
|
@ -23,7 +23,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|
||||||
- name: setup nix
|
- name: setup nix
|
||||||
uses: ./.github/actions/setup-nix
|
uses: ./.github/actions/setup-nix
|
||||||
with:
|
with:
|
||||||
|
|
@ -67,17 +66,20 @@ jobs:
|
||||||
run: du -sh /nix/store
|
run: du -sh /nix/store
|
||||||
|
|
||||||
- name: Get the init.lua path
|
- name: Get the init.lua path
|
||||||
|
if: matrix.system == 'x86_64-linux'
|
||||||
run: |
|
run: |
|
||||||
init_path=$(grep "init=" result/bin/nixvim-print-init | awk -F'=' '{print $2}')
|
init_path=$(grep "init=" result/bin/nixvim-print-init | awk -F'=' '{print $2}')
|
||||||
cp $init_path init.lua
|
cp $init_path init.lua
|
||||||
|
|
||||||
- name: Upload the artifact
|
- name: Upload the artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
if: matrix.system == 'x86_64-linux'
|
||||||
with:
|
with:
|
||||||
name: neovim-configuration
|
name: neovim-configuration
|
||||||
path: init.lua
|
path: init.lua
|
||||||
|
|
||||||
- name: Publish the init.lua to an orphan github branch
|
- name: Publish the init.lua to an orphan github branch
|
||||||
|
if: matrix.system == 'x86_64-linux'
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name github-actions
|
git config --global user.name github-actions
|
||||||
git config --global user.email github-actions@github.com
|
git config --global user.email github-actions@github.com
|
||||||
|
|
@ -87,6 +89,7 @@ jobs:
|
||||||
git commit -m "Publish init.lua"
|
git commit -m "Publish init.lua"
|
||||||
git push --force origin init-lua
|
git push --force origin init-lua
|
||||||
|
|
||||||
|
|
||||||
check-formatting:
|
check-formatting:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue