From eb465267c5a7a3701dc9ca12effe6c8108e1e4db Mon Sep 17 00:00:00 2001 From: Valmo Trindade Date: Tue, 25 Feb 2025 05:21:48 -0300 Subject: [PATCH] added release workflow --- .github/workflows/release_drafter.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release_drafter.yaml b/.github/workflows/release_drafter.yaml index 9d16245..2036849 100644 --- a/.github/workflows/release_drafter.yaml +++ b/.github/workflows/release_drafter.yaml @@ -102,16 +102,17 @@ jobs: run: hemtt release - name: Get previous tag id: prev_tag - run: echo "PREVIOUS_TAG=$(git describe --tags --abbrev=0 HEAD^)" >> $GITHUB_ENV + run: | + tag=$(git describe --tags --abbrev=0 HEAD^ || echo "") + echo "tag=${tag}" >> $GITHUB_ENV + continue-on-error: true - name: Get commit messages id: commits run: | echo "COMMIT_MESSAGES=$(git log ${{ env.PREVIOUS_TAG }}..HEAD --pretty=format:'%h - %s' | tr '\n' ',' | sed 's/,$//')" >> $GITHUB_ENV - - name: Checkout Repo - uses: actions/checkout@v4 - with: - lfs: true + - name: Create Release + id: create_release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GH_PAT }}