Get the current pushed tag in Github Actions

前端 未结 4 456
别跟我提以往
别跟我提以往 2021-01-31 08:12

Is there a way to access the current tag that has been pushed in a Github Action? In CircleCI you can access this value with the $CIRCLE_TAG variable.

My Wor

4条回答
  •  梦谈多话
    2021-01-31 09:06

    What worked for me:

    run: echo "GIT_TAG=`echo $(git describe --tags --abbrev=0)`" >> $GITHUB_ENV
    

提交回复
热议问题