GitHub action to get the hash and name of the latest tag
Example workflow
name:Getting the tag nameon:pushjobs:build:runs-on:ubuntu-lateststeps:- uses:actions/checkout@v2- name:Get tag nameid:get-tag-nameuses:0xFEEDC0DE64/get_latest_tag@main- name:Print tag inforun:| echo "name of the tag is ${{ steps.get-tag-name.outputs.tag_name }}"
echo "hash of the tag is ${{ steps.get-tag-name.outputs.tag_hash }}"
Description
GitHub action to get the hash and name of the latest tag