[CI] avoid safe.directory issues when cloning

pull/14859/head
Philipp 2025-03-15 00:18:39 +01:00
rodzic 3121a256e2
commit c6fbacd3e8
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 24A7501396EB5432
1 zmienionych plików z 12 dodań i 0 usunięć
.woodpecker

Wyświetl plik

@ -26,7 +26,19 @@ when:
exclude: [ stable ]
event: [ pull_request, push ]
skip_clone: true
steps:
clone:
image: alpine/git
commands:
- git config --global user.email "no-reply@friendi.ca"
- git config --global user.name "Friendica"
- git config --global --add safe.directory $CI_WORKSPACE
- git clone $CI_REPO_CLONE_URL .
- git checkout $CI_COMMIT_BRANCH
- git fetch origin $CI_COMMIT_REF
- git merge $CI_COMMIT_SHA
php-lint:
image: php:${PHP_MAJOR_VERSION}
commands: