File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -101,9 +101,18 @@ jobs:
101101
102102 - name : Copy version.txt from Docker image into .build
103103 run : |
104- docker run --rm --entrypoint bash cdk-utils-build-repo:latest \
105- -c 'find / -name version.txt 2>/dev/null | head -n1 | xargs cat' \
106- > .build/version.txt
104+ docker run --rm --entrypoint bash cdk-utils-build-repo:latest -c '
105+ path=$(find / -name version.txt 2>/dev/null | head -n1)
106+ if [ -z "$path" ]; then
107+ echo "version.txt not found in container."
108+ exit 1
109+ fi
110+ echo "Found version.txt at: $path"
111+ echo "----------------------------------------"
112+ cat "$path"
113+ echo "----------------------------------------"
114+ cat "$path" > /workspace/version.txt
115+ ' && mv version.txt .build/version.txt
107116
108117 - name : Configure AWS Credentials
109118 id : connect-aws
You can’t perform that action at this time.
0 commit comments