ci: debug checkout — workdir fixe + echos
Some checks failed
Build & Deploy docs / build-deploy (push) Failing after 6s
Some checks failed
Build & Deploy docs / build-deploy (push) Failing after 6s
This commit is contained in:
parent
c81cdd3e41
commit
3f83cc49de
@ -11,16 +11,24 @@ jobs:
|
|||||||
build-deploy:
|
build-deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: /root/_work/powersync-docs
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
working-directory: /root
|
||||||
run: |
|
run: |
|
||||||
git -C "$GITHUB_WORKSPACE" init
|
echo "GITHUB_WORKSPACE=${GITHUB_WORKSPACE}"
|
||||||
git -C "$GITHUB_WORKSPACE" remote add origin \
|
echo "PWD=$(pwd)"
|
||||||
"https://pakutz79:${{ secrets.MKDOCS_TOKEN }}@git.etm-powersync.fr/pakutz79/powersync-docs.git" \
|
mkdir -p /root/_work/powersync-docs
|
||||||
2>/dev/null || git -C "$GITHUB_WORKSPACE" remote set-url origin \
|
cd /root/_work/powersync-docs
|
||||||
|
git init
|
||||||
|
git remote remove origin 2>/dev/null || true
|
||||||
|
git remote add origin \
|
||||||
"https://pakutz79:${{ secrets.MKDOCS_TOKEN }}@git.etm-powersync.fr/pakutz79/powersync-docs.git"
|
"https://pakutz79:${{ secrets.MKDOCS_TOKEN }}@git.etm-powersync.fr/pakutz79/powersync-docs.git"
|
||||||
git -C "$GITHUB_WORKSPACE" fetch --depth 1 origin HEAD
|
git fetch --depth 1 origin HEAD
|
||||||
git -C "$GITHUB_WORKSPACE" checkout FETCH_HEAD
|
git checkout FETCH_HEAD
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: python3 -m pip install --break-system-packages -q -r requirements.txt
|
run: python3 -m pip install --break-system-packages -q -r requirements.txt
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user