mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-20 04:52:15 +03:00
fix: indexers ci-job git logic
This commit is contained in:
parent
293e906ff2
commit
25fd6e1a63
@ -95,13 +95,15 @@ in rec {
|
||||
coreutils
|
||||
git
|
||||
gnugrep
|
||||
openssh
|
||||
])
|
||||
''
|
||||
flake=$(cat flake.nix)
|
||||
flakeLock=$(cat flake.lock)
|
||||
set -x
|
||||
git fetch origin data
|
||||
git checkout origin/data
|
||||
git fetch origin data || :
|
||||
git checkout origin/data || :
|
||||
git branch -D data || :
|
||||
git checkout -b data
|
||||
# the flake should always be the one from the current main branch
|
||||
rm -rf ./*
|
||||
@ -149,13 +151,15 @@ in rec {
|
||||
coreutils
|
||||
git
|
||||
gnugrep
|
||||
openssh
|
||||
])
|
||||
''
|
||||
flake=$(cat flake.nix)
|
||||
flakeLock=$(cat flake.lock)
|
||||
set -x
|
||||
git fetch origin data
|
||||
git checkout origin/data
|
||||
git fetch origin data || :
|
||||
git checkout origin/data || :
|
||||
git branch -D data || :
|
||||
git checkout -b data
|
||||
# the flake should always be the one from the current main branch
|
||||
rm -rf ./*
|
||||
|
Loading…
Reference in New Issue
Block a user