feat: add version updater bot

This commit is contained in:
Eugen Eisler 2024-09-29 21:46:49 +02:00
parent 6126a14c9f
commit 6fc4d91a29

View File

@ -21,6 +21,7 @@ jobs:
- name: Get the latest tag - name: Get the latest tag
id: get_latest_tag id: get_latest_tag
run: | run: |
ls -all
latest_tag=$(git describe --tags --abbrev=0) latest_tag=$(git describe --tags --abbrev=0)
echo "Latest tag is: $latest_tag" echo "Latest tag is: $latest_tag"
echo "::set-output name=tag::$latest_tag" echo "::set-output name=tag::$latest_tag"
@ -28,6 +29,7 @@ jobs:
- name: Get the latest commit hash - name: Get the latest commit hash
id: get_commit_hash id: get_commit_hash
run: | run: |
ls -all
commit_hash=$(git rev-parse --short HEAD) commit_hash=$(git rev-parse --short HEAD)
echo "Commit hash is: $commit_hash" echo "Commit hash is: $commit_hash"
echo "::set-output name=commit_hash::$commit_hash" echo "::set-output name=commit_hash::$commit_hash"