🐛 fix: action error

This commit is contained in:
Martial BE 2024-03-06 18:13:54 +08:00
parent dd3e79a20d
commit 07c18dfb91
No known key found for this signature in database
GPG Key ID: D06C32DF0EDB9084

View File

@ -25,15 +25,14 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Save version info - name: Save dev version info
run: | run: |
TAG=$(git describe --tags --exact-match 2> /dev/null) HASH=$(git rev-parse --short=7 HEAD)
if [ $? -eq 0 ]; then echo "dev-$HASH" > VERSION
echo $TAG > VERSION - name: Save Tag version info
else if: startsWith(github.ref, 'refs/tags/')
HASH=$(git rev-parse --short=7 HEAD) run: |
echo "dev-$HASH" > VERSION git describe --tags > VERSION
fi
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v2 uses: docker/setup-qemu-action@v2