diff --git a/.github/actions/prepare-int-tests/action.yml b/.github/actions/prepare-int-tests/action.yml index 68689c51..542475d0 100644 --- a/.github/actions/prepare-int-tests/action.yml +++ b/.github/actions/prepare-int-tests/action.yml @@ -30,8 +30,9 @@ runs: shell: bash env: BRANCH_NAME: ${{ github.head_ref || github.ref_name }} + BRANCH_NAME_PREFIX: "@" run: | - NEW_CONFIG="$(jq --arg BRANCH "$BRANCH_NAME" '.packages[0].version |= $BRANCH' ${{ inputs.package }}/test/.velocitas.json)" + NEW_CONFIG="$(jq --arg BRANCH "$BRANCH_NAME_PREFIX$BRANCH_NAME" '.packages |= . + { (. | keys_unsorted[0]): $BRANCH }' ${{ inputs.package }}/test/.velocitas.json)" echo "${NEW_CONFIG}" > ${{ inputs.package }}/test/.velocitas.json - name: Install Velocitas CLI and Python requirements diff --git a/desired_state_generator/test/.velocitas.json b/desired_state_generator/test/.velocitas.json index c0adae61..c0adc9ef 100644 --- a/desired_state_generator/test/.velocitas.json +++ b/desired_state_generator/test/.velocitas.json @@ -1,8 +1,5 @@ { - "packages": [ - { - "name": "devenv-runtimes", - "version": "hash_id" - } - ] + "packages": { + "devenv-runtimes": "hash_id" + } } diff --git a/runtime_kanto/test/.velocitas.json b/runtime_kanto/test/.velocitas.json index c0adae61..c0adc9ef 100644 --- a/runtime_kanto/test/.velocitas.json +++ b/runtime_kanto/test/.velocitas.json @@ -1,8 +1,5 @@ { - "packages": [ - { - "name": "devenv-runtimes", - "version": "hash_id" - } - ] + "packages": { + "devenv-runtimes": "hash_id" + } } diff --git a/runtime_local/test/.velocitas.json b/runtime_local/test/.velocitas.json index c0adae61..c0adc9ef 100644 --- a/runtime_local/test/.velocitas.json +++ b/runtime_local/test/.velocitas.json @@ -1,8 +1,5 @@ { - "packages": [ - { - "name": "devenv-runtimes", - "version": "hash_id" - } - ] + "packages": { + "devenv-runtimes": "hash_id" + } }