Updated tag checks

This commit is contained in:
takeshix 2021-04-19 16:38:56 +02:00
parent c0f10cbaa1
commit c9effeebc1
4 changed files with 20 additions and 16 deletions

View file

@ -146,12 +146,13 @@ jobs:
id: tag_release id: tag_release
run: | run: |
set +e set +e
if [ $(git tag "gdb-v${{ needs.build-x86.outputs.version }}") ];then if git rev-list "gdb-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
echo "Tag for gdb-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
echo ::set-output name=NEW_RELEASE::"false"
else
git tag "gdb-v${{ needs.build-x86.outputs.version }}"
git push origin "gdb-v${{ needs.build-x86.outputs.version }}" git push origin "gdb-v${{ needs.build-x86.outputs.version }}"
echo ::set-output name=NEW_RELEASE::"true" 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 fi
- name: Create Release - name: Create Release

View file

@ -147,12 +147,13 @@ jobs:
- name: Tag Release - name: Tag Release
run: | run: |
set +e set +e
if [ $(git tag "nmap-v${{ needs.build-x86.outputs.version }}") ];then if git rev-list "nmap-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
echo "Tag for nmap-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
echo ::set-output name=NEW_RELEASE::"false"
else
git tag "nmap-v${{ needs.build-x86.outputs.version }}"
git push origin "nmap-v${{ needs.build-x86.outputs.version }}" git push origin "nmap-v${{ needs.build-x86.outputs.version }}"
echo ::set-output name=NEW_RELEASE::"true" 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 fi
- name: Create Release - name: Create Release

View file

@ -139,12 +139,13 @@ jobs:
id: tag_release id: tag_release
run: | run: |
set +e set +e
if [ $(git tag "socat-v${{ needs.build-x86.outputs.version }}") ];then if git rev-list "socat-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
echo "Tag for socat-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
echo ::set-output name=NEW_RELEASE::"false"
else
git tag "socat-v${{ needs.build-x86.outputs.version }}"
git push origin "socat-v${{ needs.build-x86.outputs.version }}" git push origin "socat-v${{ needs.build-x86.outputs.version }}"
echo ::set-output name=NEW_RELEASE::"true" 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 fi
- name: Create Release - name: Create Release

View file

@ -110,12 +110,13 @@ jobs:
- name: Tag Release - name: Tag Release
run: | run: |
set +e set +e
if [ $(git tag "tcpdump-v${{ needs.build-x86.outputs.version }}") ];then if git rev-list "tcpdump-v${{ needs.build-x86.outputs.version }}".. >/dev/null;then
echo "Tag for tcpdump-v${{ needs.build-x86.outputs.version }} already exists. Skipping release creation."
echo ::set-output name=NEW_RELEASE::"false"
else
git tag "tcpdump-v${{ needs.build-x86.outputs.version }}"
git push origin "tcpdump-v${{ needs.build-x86.outputs.version }}" git push origin "tcpdump-v${{ needs.build-x86.outputs.version }}"
echo ::set-output name=NEW_RELEASE::"true" 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 fi
- name: Create Release - name: Create Release