diff --git a/.github/workflows/tag_version.yaml b/.github/workflows/tag_version.yaml index 304a9dd..3080b12 100644 --- a/.github/workflows/tag_version.yaml +++ b/.github/workflows/tag_version.yaml @@ -20,22 +20,22 @@ jobs: run: | latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`) echo "Latest tag: $latest_tag" - echo "::set-output name=latest_tag::$latest_tag" + echo "latest_tag=$latest_tag" >> $GITHUB_OUTPUT - name: Calculate next version id: calculate_version run: | latest_tag=${{ steps.get_latest_tag.outputs.latest_tag }} if [[ $latest_tag =~ ^v([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then - major=${BASH_REMATCH[1]} - minor=${BASH_REMATCH[2]} - patch=${BASH_REMATCH[3]} - new_tag="v$major.$minor.$((patch + 1))" + major=${BASH_REMATCH[1]} + minor=${BASH_REMATCH[2]} + patch=${BASH_REMATCH[3]} + new_tag="v$major.$minor.$((patch + 1))" else - new_tag="v1.0.0" + new_tag="v1.0.0" fi echo "New tag: $new_tag" - echo "::set-output name=new_tag::$new_tag" + echo "new_tag=$new_tag" >> $GITHUB_OUTPUT - name: Create new tag uses: actions/github-script@v6