File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments