Skip to content

Commit 1b74e0b

Browse files
committed
chore: get tags from repository
Signed-off-by: Demolus13 <[email protected]>
1 parent 6570a82 commit 1b74e0b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

scripts/actions/setup_macaron.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,11 @@
55
set -euo pipefail
66

77
MACARON_DIR="${RUNNER_TEMP:-/tmp}/macaron"
8-
98
mkdir -p "$MACARON_DIR"
10-
cd "$MACARON_DIR"
119

1210
ref="$GITHUB_REF"
13-
1411
MACARON_IMAGE_TAG=""
15-
12+
cd "$GITHUB_WORKSPACE"
1613
if [[ "$ref" == refs/tags/* ]]; then
1714
MACARON_IMAGE_TAG="${ref#refs/tags/}"
1815
echo "Ref is a tag: $MACARON_IMAGE_TAG"
@@ -21,7 +18,6 @@ else
2118
if [[ -z "$sha" ]]; then
2219
sha="$ref"
2320
fi
24-
2521
# Check for tags pointing directly at the SHA.
2622
tags=$(git tag --points-at "$sha")
2723
if [[ -n "$tags" ]]; then
@@ -40,6 +36,8 @@ else
4036
fi
4137
fi
4238

39+
cd "$MACARON_DIR"
40+
4341
# Download image using macaron_image_tag else latest release
4442
if [ "${MACARON_IMAGE_TAG}" != "" ]; then
4543
echo "MACARON_IMAGE_TAG detected: ${MACARON_IMAGE_TAG}"

0 commit comments

Comments
 (0)