Fix: replace actions/checkout with direct git commands (no Node.js in runner)
This commit is contained in:
@@ -11,7 +11,14 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
|
# No Node.js available in runner container — use git directly
|
||||||
|
cd "${GITHUB_WORKSPACE:-.}"
|
||||||
|
git init
|
||||||
|
git remote add origin http://gitea:3000/dguiducci/Skald-Circle.git
|
||||||
|
git fetch --depth 1 origin "${GITHUB_REF_NAME:-main}"
|
||||||
|
git checkout FETCH_HEAD
|
||||||
|
git submodule update --init --recursive 2>/dev/null || true
|
||||||
|
|
||||||
- name: Build native (linux/amd64)
|
- name: Build native (linux/amd64)
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
|
|||||||
@@ -16,7 +16,14 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
|
# No Node.js available in runner container — use git directly
|
||||||
|
cd "${GITHUB_WORKSPACE:-.}"
|
||||||
|
git init
|
||||||
|
git remote add origin http://gitea:3000/dguiducci/Skald-Circle.git
|
||||||
|
git fetch --depth 1 origin "${GITHUB_REF_NAME:-release}"
|
||||||
|
git checkout FETCH_HEAD
|
||||||
|
git submodule update --init --recursive 2>/dev/null || true
|
||||||
|
|
||||||
- name: Verify version is new
|
- name: Verify version is new
|
||||||
run: ./scripts/verify-version.sh --builds-dir /var/www/builds.skaldagent.net
|
run: ./scripts/verify-version.sh --builds-dir /var/www/builds.skaldagent.net
|
||||||
@@ -31,7 +38,14 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
|
# No Node.js available in runner container — use git directly
|
||||||
|
cd "${GITHUB_WORKSPACE:-.}"
|
||||||
|
git init
|
||||||
|
git remote add origin http://gitea:3000/dguiducci/Skald-Circle.git
|
||||||
|
git fetch --depth 1 origin "${GITHUB_REF_NAME:-release}"
|
||||||
|
git checkout FETCH_HEAD
|
||||||
|
git submodule update --init --recursive 2>/dev/null || true
|
||||||
|
|
||||||
- name: Extract version from Cargo.toml
|
- name: Extract version from Cargo.toml
|
||||||
id: extract-version
|
id: extract-version
|
||||||
|
|||||||
Reference in New Issue
Block a user