Skip to content

Commit

Permalink
Updated OpenSSH tag check
Browse files Browse the repository at this point in the history
  • Loading branch information
takeshixx committed Apr 19, 2021
1 parent 349f0d7 commit c0f10cb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-openssh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,13 @@ jobs:
id: tag_release
run: |
set +e
if [ $(git tag "openssh-v${{ needs.build-x86.outputs.version }}") ];then
if git rev-list "openssh-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
echo "Tag for openssh-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
echo ::set-output name=NEW_RELEASE::"false"
else
git tag "openssh-v${{ needs.build-x86.outputs.version }}"
git push origin "openssh-v${{ needs.build-x86.outputs.version }}"
echo ::set-output name=NEW_RELEASE::"true"
else
echo "Tag for version ${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
echo ::set-output name=NEW_RELEASE::"false"
fi
- name: Create Release
Expand Down

0 comments on commit c0f10cb

Please sign in to comment.