Migrate from actions/checkout to manual cloning
Deploy / deploy (push) Failing after 1s
Details
Deploy / deploy (push) Failing after 1s
Details
This commit is contained in:
parent
b42b23f036
commit
f6ebb744b7
|
|
@ -9,13 +9,23 @@ jobs:
|
|||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: romanskijdev/ruspet_portal_back
|
||||
ref: develop
|
||||
token: ${{ secrets.TOKEN }}
|
||||
# Явно указываем правильный URL с /gitea/ субпутём
|
||||
server-url: https://72.56.235.246.nip.io/gitea
|
||||
run: |
|
||||
REPO_DIR="/workspace/ruspet_portal_back"
|
||||
REPO_URL="https://72.56.235.246.nip.io/gitea/romanskijdev/ruspet_portal_back.git"
|
||||
|
||||
if [ -d "$REPO_DIR/.git" ]; then
|
||||
echo "📦 Updating existing repo..."
|
||||
cd "$REPO_DIR"
|
||||
git fetch origin
|
||||
git reset --hard origin/develop
|
||||
else
|
||||
echo "📦 Cloning repo..."
|
||||
mkdir -p /workspace
|
||||
git clone -b develop "$REPO_URL" "$REPO_DIR"
|
||||
fi
|
||||
|
||||
echo "✅ Checkout done"
|
||||
ls "$REPO_DIR"
|
||||
|
||||
- name: Test run
|
||||
run: echo "✅ Runner works!"
|
||||
Loading…
Reference in New Issue