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: