From e9786c6d30169f369024f1557b21e1655759ed4d Mon Sep 17 00:00:00 2001 From: David Holdeman Date: Fri, 3 Mar 2023 23:00:18 -0600 Subject: [PATCH] Fix nightly again (#5150) * try tag check action * no prefix --- .github/workflows/build-firmware.yaml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-firmware.yaml b/.github/workflows/build-firmware.yaml index f98a9e3d7c..b928ca63ad 100644 --- a/.github/workflows/build-firmware.yaml +++ b/.github/workflows/build-firmware.yaml @@ -24,21 +24,19 @@ jobs: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV fi - - name: Fetch tags - if: ${{ env.full == 'true' && env.upload == 'release' }} - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* - - - name: Check if tag exists - if: ${{ env.full == 'true' && env.upload == 'release' }} - run: git show-ref --tags --verify --quiet -- "refs/tags/${{ env.date }}" && echo "tagged=true" >> $GITHUB_ENV || echo "tagged=false" >> $GITHUB_ENV + - uses: mukunku/tag-exists-action@v1.2.0 + id: checkTag + with: + tag: ${{ env.date }} - name: Create Release Tag - if: ${{ env.full == 'true' && env.upload == 'release' && env.tagged == 'false' }} + if: ${{ env.full == 'true' && env.upload == 'release' && steps.checkTag.outputs.exists == 'false' }} id: tag uses: mathieudutour/github-tag-action@v6.1 with: github_token: ${{ secrets.ACCESS_TOKEN }} custom_tag: ${{ env.date }} + tag_prefix: '' - name: Create Release if: ${{ env.full == 'true' && env.upload == 'release' }}