Updated OpenSSH tag check
This commit is contained in:
parent
349f0d7f3e
commit
c0f10cbaa1
1 changed files with 5 additions and 4 deletions
9
.github/workflows/build-openssh.yml
vendored
9
.github/workflows/build-openssh.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue