fix: fixed autotagger
This commit is contained in:
parent
f594a1d4ab
commit
697a345ed5
1 changed files with 1 additions and 4 deletions
|
@ -31,7 +31,6 @@ jobs:
|
||||||
git fetch --tags
|
git fetch --tags
|
||||||
echo "::set-output name=latest_tag::$(git describe --tags `git rev-list --tags --max-count=1`)"
|
echo "::set-output name=latest_tag::$(git describe --tags `git rev-list --tags --max-count=1`)"
|
||||||
echo "::set-output name=version::$(awk -F '=' '/^ *version/ {gsub(/[[:space:]"]/, "", $2); print $2}' pyproject.toml)"
|
echo "::set-output name=version::$(awk -F '=' '/^ *version/ {gsub(/[[:space:]"]/, "", $2); print $2}' pyproject.toml)"
|
||||||
echo "::set-output name=message::"$(git log --format=%B -n 1 $GITHUB_SHA)""
|
|
||||||
|
|
||||||
- name: Compare version and latest tag
|
- name: Compare version and latest tag
|
||||||
id: compare
|
id: compare
|
||||||
|
@ -54,8 +53,6 @@ jobs:
|
||||||
- name: Update latest tag
|
- name: Update latest tag
|
||||||
if: steps.compare.outputs.latest_tag
|
if: steps.compare.outputs.latest_tag
|
||||||
run: |
|
run: |
|
||||||
MESSAGE=${{ steps.vars.outputs.message }}
|
|
||||||
LATEST_TAG=${{ steps.compare.outputs.latest_tag }}
|
LATEST_TAG=${{ steps.compare.outputs.latest_tag }}
|
||||||
echo "$MESSAGE"
|
git tag -fs $LATEST_TAG -m $LATEST_TAG
|
||||||
git tag -fs $LATEST_TAG -m "$MESSAGE"
|
|
||||||
git push origin $LATEST_TAG --force
|
git push origin $LATEST_TAG --force
|
||||||
|
|
Loading…
Reference in a new issue