diff --git a/.yamato/_triggers.yml b/.yamato/_triggers.yml index 20eafbe8f..a0e75af0d 100644 --- a/.yamato/_triggers.yml +++ b/.yamato/_triggers.yml @@ -30,6 +30,7 @@ run_ci_test_against_new_ngo_version: name: ⚡ Run CI test against new NGO version ⚡ dependencies: - .yamato/project-pack.yml#pack_com.unity.multiplayer.samples.coop + - .yamato/ngo_version.yml#update_ngo triggers: external: source: git@github.com:Unity-Technologies/com.unity.netcode.gameobjects.git diff --git a/.yamato/project-pack.yml b/.yamato/project-pack.yml index fd507a001..745919cd9 100644 --- a/.yamato/project-pack.yml +++ b/.yamato/project-pack.yml @@ -8,12 +8,21 @@ pack_{{ project.name }}: image: package-ci/ubuntu:stable flavor: b1.small commands: - - npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm - - upm-ci project pack --project-path {{ project.path }} -{% if "ExternalPush" == "ExternalPush" -%} - dependencies: - - .yamato/ngo_version.yml#update_ngo +{% if $YAMATO_TRIGGER_TYPE == "ExternalPush" -%} + - command: |- + sudo apt-get install jq + sudo yum install jq + echo release/1.9.0 >> release.txt + number_variable=$(sed -n 's/^release\/\([0-9.]*\)$/\1/p' release.txt) + echo $number_variable >> test1.txt + cat test1.txt + pwd + sed -i 's/"com\.unity\.netcode\.gameobjects": "[^"]*"/"com.unity.netcode.gameobjects": "'"$number_variable"'"/' Packages/manifest.json + cat Packages/manifest.json + sed -i 's/YAMATO_TRIGGER_BRANCH/number_variable' .yamato/ngo_version.yml {% endif -%} + - command: npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm + - command: upm-ci project pack --project-path {{ project.path }} artifacts: packages: paths: