CI: fix checkout URL construction (GITHUB_SERVER_URL is http://forgejo:3000 internally, not https)
Some checks failed
CI / check (push) Failing after 17s
Some checks failed
CI / check (push) Failing after 17s
This commit is contained in:
parent
1e9cc8f33d
commit
887e51184b
1 changed files with 2 additions and 1 deletions
|
|
@ -15,6 +15,7 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
command -v git >/dev/null || (apt-get update -qq && apt-get install -y -qq git)
|
command -v git >/dev/null || (apt-get update -qq && apt-get install -y -qq git)
|
||||||
git clone --depth 1 --branch "$GITHUB_REF_NAME" "https://x-access-token:${GITHUB_TOKEN}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" .
|
AUTH_URL=$(echo "$GITHUB_SERVER_URL" | sed -E "s#^(https?)://#\1://x-access-token:${GITHUB_TOKEN}@#")
|
||||||
|
git clone --depth 1 --branch "$GITHUB_REF_NAME" "$AUTH_URL/${GITHUB_REPOSITORY}.git" .
|
||||||
- run: pip install --no-cache-dir -r requirements.txt
|
- run: pip install --no-cache-dir -r requirements.txt
|
||||||
- run: python -m py_compile app.py
|
- run: python -m py_compile app.py
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue