From 903d99c3384729e4d71881526ff839f353ee6d2e Mon Sep 17 00:00:00 2001 From: alex-mccarthy-unity Date: Thu, 7 Mar 2024 14:31:35 +0100 Subject: [PATCH] Fix patch file path Fixes errors when generating a to-be-applied patch like the following: ```sh [13:26:24.999 Information] /tmp/tmprjqpg5.tmp: line 17: ../artifacts/proto.patch: No such file or directory ``` --- .yamato/protobuf-generation-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.yamato/protobuf-generation-test.yml b/.yamato/protobuf-generation-test.yml index 0572b31db0..ff43fe93a6 100644 --- a/.yamato/protobuf-generation-test.yml +++ b/.yamato/protobuf-generation-test.yml @@ -25,7 +25,7 @@ test_linux_protobuf_generation: git diff --exit-code -- :/ ":(exclude,top)$CS_PROTO_PATH/*.meta" \ || { GIT_ERR=$?; echo "protobufs need to be regenerated, apply the patch uploaded to artifacts."; \ echo "Apply the patch with the command 'git apply proto.patch'"; \ - git diff -- :/ ":(exclude,top)$CS_PROTO_PATH/*.meta" > ../artifacts/proto.patch; exit $GIT_ERR; } + git diff -- :/ ":(exclude,top)$CS_PROTO_PATH/*.meta" > artifacts/proto.patch; exit $GIT_ERR; } triggers: cancel_old_ci: true expression: |