From 057b905d04feba135eeeeaeb107026d2ddebf439 Mon Sep 17 00:00:00 2001 From: Mathias Rasmussen Date: Sun, 13 Feb 2022 18:35:10 +0100 Subject: [PATCH] Add date to nightly build tag --- .github/workflows/nightly.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index b1268626..2b431a85 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -40,12 +40,16 @@ jobs: set -- release-assets/Betaflight-Configurator-Debug-* echo "::set-output name=notes::$(test -e "$1" && echo '${{ env.debugReleaseNotes }}' || echo '${{ env.releaseNotes }}')" + - name: Get current date + id: date + run: echo "::set-output name=today::$(date '+%Y%m%d')" + - name: Release uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5 # v0.1.14 with: token: ${{ secrets.REPO_TOKEN }} repository: ${{ env.repoNightly }} - tag_name: build-${{ github.run_number }} + tag_name: v${{ steps.date.outputs.today }}.${{ github.run_number }} files: release-assets/Betaflight-Configurator-*/** draft: false prerelease: false