ci: replace actions/checkout with a plain git clone
Publish Maven packages / publish (push) Failing after 27s
Publish Maven packages / publish (push) Failing after 27s
actions/checkout@v4 is a Node-based action; the maven:3.9-eclipse-temurin-21 container it was running in has no Node, so it failed with "node: executable file not found in \$PATH". A shell git clone needs neither Node nor any action runtime, just git (installed here via apt). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
6a0242d654
commit
4710cf8633
@@ -17,10 +17,17 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
# No actions/checkout here on purpose: it's a Node-based action, and this container
|
||||||
|
# (chosen for its preinstalled mvn/JDK 21) has no Node — checkout would fail with
|
||||||
|
# "node: executable file not found". A plain git clone needs neither.
|
||||||
container:
|
container:
|
||||||
image: maven:3.9-eclipse-temurin-21
|
image: maven:3.9-eclipse-temurin-21
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout
|
||||||
|
run: |
|
||||||
|
apt-get update && apt-get install -y --no-install-recommends git
|
||||||
|
git clone https://git.pixel-services.com/Relism/Flash5.git .
|
||||||
|
git checkout ${{ gitea.sha }}
|
||||||
|
|
||||||
- name: Stamp every module with a commit-scoped version
|
- name: Stamp every module with a commit-scoped version
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user