From db4fae3b5f4f0280ab21a9f5142163bfc8f940a2 Mon Sep 17 00:00:00 2001 From: Antoine Azevedo Da Silva Date: Mon, 4 Sep 2023 17:11:53 +0200 Subject: [PATCH] chore: updates action --- .github/workflows/create_tag.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/create_tag.yml b/.github/workflows/create_tag.yml index 1102baa..3c264eb 100644 --- a/.github/workflows/create_tag.yml +++ b/.github/workflows/create_tag.yml @@ -17,14 +17,14 @@ jobs: fetch-depth: 0 - name: Get last commit message id: commit_message - run: echo "::set-output name=message::$(git log -1 --pretty=format:'%s')" + run: echo "COMMIT_MSG=$(git log -1 --pretty=format:'%s')" >> $GITHUB_ENV - name: Echo env - run: echo ${{ steps.commit_message.outputs.message }} + run: echo ${{ env.COMMIT_MSG }} - name: Create or update major version uses: joutvhu/create-tag@v1 with: - tag_name: ${{ steps.commit_message.outputs.message }} - message: ${{ steps.commit_message.outputs.message }} + tag_name: ${{ env.COMMIT_MSG }} + message: ${{ env.COMMIT_MSG }} on_tag_exists: update env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}