From 57cdb6c08f23a00ea058806dd65abe34e8ffd3c6 Mon Sep 17 00:00:00 2001 From: wiiznokes <78230769+wiiznokes@users.noreply.github.com> Date: Thu, 22 Aug 2024 23:55:21 +0200 Subject: [PATCH] g --- .github/workflows/release.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8359594..c3e4df1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,25 +34,27 @@ jobs: with: tool: changelog-gen - - id: identify - run: | - echo "VERSION="$(date +"%-y.%-m.%-d")"" >> $GITHUB_ENV - echo "RELEASE_DATE="$(date +"%Y-%m-%d")"" >> $GITHUB_ENV + - name: Set Github env + run: | + echo "version="$(date +"%-y.%-m.%-d")"" >> $GITHUB_ENV + echo "release_date="$(date +"%Y-%m-%d")"" >> $GITHUB_ENV - sed -i '/ VERSION + - id: identify + run: | + sed -i '/ VERSION changelog-gen generate --exclude-unidentified - changelog-gen release --version ${{ env.VERSION }} + changelog-gen release --version ${{ env.version }} - echo "version=${{ env.VERSION }}" >> $GITHUB_OUTPUT + echo "version=${{ env.version }}" >> $GITHUB_OUTPUT - uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: "chore(changelog): automatic release generation (skip changelog) [skip ci]" - tagging_message: ${{ env.VERSION }} + tagging_message: ${{ env.version }} upload-artifacts: needs: