File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7575 tag_name="${GITHUB_REF_NAME}"
7676 prerelease="false"
7777 else
78- tag_name="v0.0.${GITHUB_RUN_NUMBER}"
78+ git fetch --tags --force
79+ latest_patch="$(git tag -l 'v0.1.*' | sed -E 's/^v0\\.1\\.([0-9]+)$/\\1/' | sort -n | tail -n1)"
80+ if [[ -z "${latest_patch}" ]]; then
81+ next_patch="1"
82+ else
83+ next_patch="$((latest_patch + 1))"
84+ fi
85+ tag_name="v0.1.${next_patch}"
7986 prerelease="true"
8087 fi
8188 echo "tag_name=${tag_name}" >> "${GITHUB_OUTPUT}"
Original file line number Diff line number Diff line change @@ -48,11 +48,11 @@ Manual version tags (`v*`) publish normal releases.
4848Automatic release tags use this format:
4949
5050``` bash
51- v0.0. < github_run_number >
51+ v0.1. < auto_increment_patch >
5252```
5353
5454Example prerelease page after a ` main ` push:
55- - ` https://github.com/apktdev/ticktick-cli/releases/tag/v0.0.123 `
55+ - ` https://github.com/apktdev/ticktick-cli/releases/tag/v0.1.12 `
5656
5757If you want a manual versioned release:
5858
You can’t perform that action at this time.
0 commit comments