Skip to content

Commit b0bd24b

Browse files
Fixed Version Calculation bug
1 parent b85aed8 commit b0bd24b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/postman.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
run: |
7676
ext=${{ matrix.extension }}
7777
file=$(ls postman*${ext})
78-
version=$(python3 -c "import re; print(re.match(r'postman.*(([0-9]+\.){2}[0-9]+).*${ext}', '${file}').group(1))")
78+
version=$(cat postman/app/resources/app/package.json | jq .version -r)
7979
echo "Postman Version = ${version}"
8080
echo "VERSION=${version}" >> $GITHUB_ENV
8181
rm -v "${file}"
@@ -105,7 +105,8 @@ jobs:
105105
106106
- name : "Create Postman archive"
107107
run: |
108-
tar --xz -cf postman-${{ matrix.os_type }}-${{ env.VERSION }}.tar.xz ./postman*
108+
mv ./postman* Postman
109+
tar --xz -cf postman-${{ matrix.os_type }}-${{ env.VERSION }}.tar.xz ./Postman
109110
ls -lh
110111
111112
- name : "Calculate Checksum"

0 commit comments

Comments
 (0)