File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 7777
7878 mv postman* Postman
7979
80- - name : " Get Postman Version"
81- run : |
82- version=$(cat Postman/app/resources/app/package.json | jq .version -r)
83- echo "Postman Version = ${version}"
84- echo "VERSION=${version}" >> $GITHUB_ENV
85-
8680 - name : " Check if app.asar file is found"
8781 run : |
8882 path=$(find $PWD/Postman -type f -iname app.asar)
9488 echo "NO_APP_ASAR=True" >> $GITHUB_ENV
9589 fi
9690
91+ - name : " Get Postman Version"
92+ run : |
93+ if
94+ if [[ -n "${NO_APP_ASAR}" ]] ; then
95+ version=$(cat Postman/app/resources/app/package.json | jq .version -r)
96+ else
97+ npm install -g asar
98+ path=$(find $PWD/Postman -type f -iname app.asar)
99+ asar e "$path" /tmp/postman_app.asar_extracted
100+ version=$(cat /tmp/postman_app.asar_extracted/package.json | jq .version -r)
101+ fi
102+
103+ echo "Postman Version = ${version}"
104+ echo "VERSION=${version}" >> $GITHUB_ENV
105+
97106 - name : " Fix Scratch Pad Banner"
98107 run : |
99108 npm install
You can’t perform that action at this time.
0 commit comments