|
56 | 56 | git config --global user.email ""
|
57 | 57 | git config --global user.name "Symfony"
|
58 | 58 | git config --global init.defaultBranch main
|
| 59 | + git config --global advice.detachedHead false |
59 | 60 |
|
60 | 61 | COMPOSER_HOME="$(composer config home)"
|
61 | 62 | ([ -d "$COMPOSER_HOME" ] || mkdir "$COMPOSER_HOME") && cp .github/composer-config.json "$COMPOSER_HOME/config.json"
|
@@ -102,7 +103,7 @@ jobs:
|
102 | 103 |
|
103 | 104 | # For the highest branch, in high-deps mode, the version before it is checked out and tested with the locally patched components
|
104 | 105 | if [[ "${{ matrix.mode }}" = high-deps && $SYMFONY_VERSION = $(echo "$SYMFONY_VERSIONS" | tail -n 1 | sed s/.//) ]]; then
|
105 |
| - echo FLIP='🙃' >> $GITHUB_ENV |
| 106 | + echo FLIP='^' >> $GITHUB_ENV |
106 | 107 | SYMFONY_VERSION=$(echo "$SYMFONY_VERSIONS" | grep -FB1 /$SYMFONY_VERSION | head -n 1 | sed s/.//)
|
107 | 108 | git fetch --depth=2 origin $SYMFONY_VERSION
|
108 | 109 | git checkout -m FETCH_HEAD
|
@@ -147,15 +148,15 @@ jobs:
|
147 | 148 | run: |
|
148 | 149 | _run_tests() {
|
149 | 150 | local ok=0
|
150 |
| - local title="$1 $FLIP" |
| 151 | + local title="$1$FLIP" |
151 | 152 | local start=$(date -u +%s)
|
152 | 153 | OUTPUT=$(bash -xc "$2" 2>&1) || ok=1
|
153 | 154 | local end=$(date -u +%s)
|
154 | 155 |
|
155 | 156 | if [[ $ok -ne 0 ]]; then
|
156 | 157 | printf "\n%-70s%10s\n" $title $(($end-$start))s
|
157 | 158 | echo "$OUTPUT"
|
158 |
| - echo -e "\n\\e[41mKO\\e[0m $title\\n" |
| 159 | + echo -e "\n::error::\\e[41mKO\\e[0m $title\\n" |
159 | 160 | else
|
160 | 161 | printf "::group::%-68s%10s\n" $title $(($end-$start))s
|
161 | 162 | echo "$OUTPUT"
|
@@ -187,7 +188,7 @@ jobs:
|
187 | 188 | COMPONENTS=$(git diff --name-only src/ | grep composer.json || true)
|
188 | 189 |
|
189 | 190 | if [[ $COMPONENTS && $SYMFONY_VERSION = *.4 ]]; then
|
190 |
| - export FLIP='🙃' |
| 191 | + export FLIP='^' |
191 | 192 | SYMFONY_VERSION=$(echo $SYMFONY_VERSION | awk '{print $1 - 1}')
|
192 | 193 | echo -e "\\n\\e[33;1mChecking out Symfony $SYMFONY_VERSION and running tests with patched components as deps\\e[0m"
|
193 | 194 | export COMPOSER_ROOT_VERSION=$SYMFONY_VERSION.x-dev
|
|
0 commit comments