ci(release): corriger la construction de l'URL git pour le push
GITHUB_SERVER_URL vaut http://forgejo:3000 (réseau interne Docker). Extraire scheme et host séparément pour reconstruire l'URL correctement. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
92b63fe83d
commit
267b83bd0c
1 changed files with 3 additions and 1 deletions
|
|
@ -60,7 +60,9 @@ jobs:
|
||||||
|
|
||||||
git config user.name "CI"
|
git config user.name "CI"
|
||||||
git config user.email "ci@forge.lclr.dev"
|
git config user.email "ci@forge.lclr.dev"
|
||||||
git remote set-url origin "https://x-token:${GITEA_TOKEN}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git"
|
scheme="${GITHUB_SERVER_URL%%://*}"
|
||||||
|
host="${GITHUB_SERVER_URL#*://}"
|
||||||
|
git remote set-url origin "${scheme}://x-token:${GITEA_TOKEN}@${host}/${GITHUB_REPOSITORY}.git"
|
||||||
git add CHANGELOG.md
|
git add CHANGELOG.md
|
||||||
git commit -m "chore(changelog): release ${current_tag}"
|
git commit -m "chore(changelog): release ${current_tag}"
|
||||||
git push origin HEAD:main
|
git push origin HEAD:main
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue