From 8c7b19ea12c101b4e71bb03d16c8fce514b25082 Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Fri, 1 Dec 2023 14:17:02 +0100 Subject: [PATCH] GHA: Use tag instead of sha when available --- .github/workflows/all_builds.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/all_builds.yml b/.github/workflows/all_builds.yml index 98ae699..935e7c5 100644 --- a/.github/workflows/all_builds.yml +++ b/.github/workflows/all_builds.yml @@ -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