GHA: Use tag instead of sha when available

This commit is contained in:
Serhii Snitsaruk 2023-12-01 14:17:02 +01:00
parent ada246acf9
commit 8c7b19ea12
1 changed files with 2 additions and 2 deletions

View File

@ -34,9 +34,9 @@ jobs:
- name: Cache SHA
id: cache-sha
run: |
echo "godot-sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
echo "godot-sha=$(git describe --tags --exact-match HEAD || git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
cd modules/limboai
echo "limboai-sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
echo "limboai-sha=$(git describe --tags --exact-match HEAD || git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
android-build:
name: 🤖 Android