We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6570a82 commit 1b74e0bCopy full SHA for 1b74e0b
scripts/actions/setup_macaron.sh
@@ -5,14 +5,11 @@
5
set -euo pipefail
6
7
MACARON_DIR="${RUNNER_TEMP:-/tmp}/macaron"
8
-
9
mkdir -p "$MACARON_DIR"
10
-cd "$MACARON_DIR"
11
12
ref="$GITHUB_REF"
13
14
MACARON_IMAGE_TAG=""
15
+cd "$GITHUB_WORKSPACE"
16
if [[ "$ref" == refs/tags/* ]]; then
17
MACARON_IMAGE_TAG="${ref#refs/tags/}"
18
echo "Ref is a tag: $MACARON_IMAGE_TAG"
@@ -21,7 +18,6 @@ else
21
if [[ -z "$sha" ]]; then
22
19
sha="$ref"
23
20
fi
24
25
# Check for tags pointing directly at the SHA.
26
tags=$(git tag --points-at "$sha")
27
if [[ -n "$tags" ]]; then
@@ -40,6 +36,8 @@ else
40
36
41
37
42
38
39
+cd "$MACARON_DIR"
+
43
# Download image using macaron_image_tag else latest release
44
if [ "${MACARON_IMAGE_TAG}" != "" ]; then
45
echo "MACARON_IMAGE_TAG detected: ${MACARON_IMAGE_TAG}"
0 commit comments