fix: git describe --tags --always

This commit is contained in:
Jason Song 2023-04-27 11:54:19 +08:00
parent 9f6a26fe9b
commit a2c529c407
No known key found for this signature in database
GPG key ID: 8402EEEE4511A8B5

View file

@ -15,6 +15,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # all history for all branches and tags
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
@ -32,7 +34,7 @@ jobs:
id: meta
run: |
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
echo REPO_VERSION=$(echo ${{ github.ref }} | awk -F"/" '{print $3}' | awk -F"v" '{print $2}') >> $GITHUB_OUTPUT
echo REPO_VERSION=$(git describe --tags --always) >> $GITHUB_OUTPUT
- name: Build and push
uses: docker/build-push-action@v4