Skip to content

Commit d37683e

Browse files
DO-1298 revert to easier method
1 parent 954e520 commit d37683e

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

.github/workflows/build-conquest-python.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,9 @@ jobs:
9090
9191
- name: Build conquest python
9292
run: |
93-
${{ needs.setup.outputs.python }} build_conquest_python.py > build_output.log 2>&1
94-
cat build_output.log
95-
output=$(grep "Creating.*\.tar\.gz.*in" build_output.log | tail -n 1)
96-
echo "Parsed output line: $output"
97-
if [[ -z "$output" ]]; then
98-
echo "Error: No 'Creating' line found in build output"
99-
exit 1
100-
fi
93+
output=$(${{ needs.setup.outputs.python }} build_conquest_python.py | grep Creating | tail -n 1)
10194
archive_filename=$(echo $output | awk '{print $2}')
102-
archive_path=$(echo $output | sed 's/^Creating .* in //')
103-
echo "Parsed filename: $archive_filename"
104-
echo "Parsed path: $archive_path"
95+
archive_path=$(echo $output | awk '{print $NF}')
10596
echo "archive_filename=$archive_filename" >> $GITHUB_ENV
10697
echo "archive_path=$archive_path" >> $GITHUB_ENV
10798
@@ -152,4 +143,3 @@ jobs:
152143
echo "Failed to upload ${{ env.archive_filename }} to ProGet"
153144
exit 1
154145
fi
155-

0 commit comments

Comments
 (0)