Skip to content

Commit 4bffc5e

Browse files
committed
Test: Fix GOVTOOL_TAG env variable
1 parent 2a63282 commit 4bffc5e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build-and-deploy-test-stack.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,25 @@ jobs:
4242
cd $DEST_DIR || exit
4343
echo "Updating repository..."
4444
git fetch --all
45-
git checkout --force "$GOVTOOL_TAG"
45+
git checkout --force "${{ github.sha }}"
4646
else
4747
echo "Not a git repository. Re-cloning..."
4848
rm -rf "$DEST_DIR"
4949
git clone "$REPO_URL" "$DEST_DIR"
5050
cd "$DEST_DIR" || exit
51-
git checkout --force "$GOVTOOL_TAG"
51+
git checkout --force "${{ github.sha }}"
5252
fi
5353
else
5454
echo "Directory does not exist. Cloning repository..."
5555
git clone "$REPO_URL" "$DEST_DIR"
5656
cd "$DEST_DIR" || exit
57-
git checkout --force "$GOVTOOL_TAG"
57+
git checkout --force "${{ github.sha }}"
5858
fi
5959
6060
cd $DEST_DIR/tests/test-infrastructure
6161
6262
# Create a backup of the .env file if it exists
63-
ENV_FILE="$DEST_DIR/.env"
63+
ENV_FILE=".env"
6464
if [ -f "$ENV_FILE" ]; then
6565
TIMESTAMP=$(date +"%Y-%m-%d_%H-%M-%S")
6666
BACKUP_FILE="${ENV_FILE}_backup_$TIMESTAMP"

0 commit comments

Comments
 (0)