Skip to content

Commit 7619b8e

Browse files
committed
Common!
1 parent 5c7f882 commit 7619b8e

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
# Map a step output to a job output
1515
outputs:
16-
build: ${{ steps.check.outputs.build }}
16+
create: ${{ steps.check.outputs.create }}
1717
steps:
1818
- uses: actions/checkout@v2
1919
- name: Check version
@@ -23,12 +23,13 @@ jobs:
2323
build:
2424
name: Postman AppImage Build
2525
needs: version
26-
if: ${{ needs.version.outputs.build == 'true' }}
26+
if: ${{ needs.version.outputs.create == 'true' }}
2727
runs-on: ubuntu-latest
2828
steps:
2929
- uses: actions/checkout@v2
3030
- name: Build Postman
3131
run: |
32+
echo ${{ needs.version.outputs.create == 'true' }}
3233
bash build.sh
3334
echo "$POSTMAN_VERSION"
3435
- name: Upload artifact

version.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ GH_REPO="$( echo "$GITHUB_REPOSITORY" | grep -o "/.*" | cut -c2- )"
3737
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')
3838

3939
if [ "$VERSION" = "$RELEASE_VERSION" ]; then
40-
echo "::set-output name=build::false"
40+
echo "false";
41+
echo "::set-output name=create::false"
4142
else
42-
echo "::set-output name=build::true"
43+
echo "true";
44+
echo "::set-output name=create::true"
4345
fi

0 commit comments

Comments
 (0)