Skip to content

Commit

Permalink
github/workflows/nix: build scylla-repository path from RELOC_VERSION
Browse files Browse the repository at this point in the history
so we don't hardwire it to a fixed path.

Signed-off-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov authored and fruch committed Mar 24, 2024
1 parent 68e0116 commit 0dbb177
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ jobs:
- name: Download versions
if: steps.cache-versions.outputs.cache-hit != 'true'
run: |
if [ ! -f ~/.ccm/scylla-repository/unstable/master/2023-04-13T13_31_00Z ]; then
normalized=$(echo $RELOC_VERSION | tr ':' '_')
if [ ! -f ~/.ccm/scylla-repository/unstable/master/$normalized ]; then
nix develop --command ./ccm create temp -n 1 --scylla --version $SCYLLA_VERSION
nix develop --command ./ccm remove
fi
Expand Down

0 comments on commit 0dbb177

Please sign in to comment.