File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 13
13
runs-on : ubuntu-latest
14
14
# Map a step output to a job output
15
15
outputs :
16
- build : ${{ steps.check.outputs.build }}
16
+ create : ${{ steps.check.outputs.create }}
17
17
steps :
18
18
- uses : actions/checkout@v2
19
19
- name : Check version
@@ -23,12 +23,13 @@ jobs:
23
23
build :
24
24
name : Postman AppImage Build
25
25
needs : version
26
- if : ${{ needs.version.outputs.build == 'true' }}
26
+ if : ${{ needs.version.outputs.create == 'true' }}
27
27
runs-on : ubuntu-latest
28
28
steps :
29
29
- uses : actions/checkout@v2
30
30
- name : Build Postman
31
31
run : |
32
+ echo ${{ needs.version.outputs.create == 'true' }}
32
33
bash build.sh
33
34
echo "$POSTMAN_VERSION"
34
35
- name : Upload artifact
Original file line number Diff line number Diff line change @@ -37,7 +37,9 @@ GH_REPO="$( echo "$GITHUB_REPOSITORY" | grep -o "/.*" | cut -c2- )"
37
37
RELEASE_VERSION=$( gh api -H " Accept: application/vnd.github+json" /repos/" $GH_USER " /" $GH_REPO " /releases/latest | jq -r " .name" | sed ' s/Postman AppImage //g' )
38
38
39
39
if [ " $VERSION " = " $RELEASE_VERSION " ]; then
40
- echo " ::set-output name=build::false"
40
+ echo " false" ;
41
+ echo " ::set-output name=create::false"
41
42
else
42
- echo " ::set-output name=build::true"
43
+ echo " true" ;
44
+ echo " ::set-output name=create::true"
43
45
fi
You can’t perform that action at this time.
0 commit comments