CI : checkout Git direct dans le job publish
Le conteneur docker:27-cli (Alpine) n'a pas Node -> actions/checkout (action JS) échoue avec « exec: "node": not found ». Remplacé par un clone Git du dépôt public (git init + fetch --depth 1 + checkout FETCH_HEAD). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
7be173e08e
commit
5bff28fefe
1 changed files with 10 additions and 4 deletions
|
|
@ -54,10 +54,16 @@ jobs:
|
||||||
container:
|
container:
|
||||||
image: docker:27-cli
|
image: docker:27-cli
|
||||||
steps:
|
steps:
|
||||||
- name: Outils
|
# `docker:27-cli` (Alpine) n'a pas Node : on ne peut pas utiliser
|
||||||
run: apk add --no-cache git
|
# actions/checkout (action JS). Clone Git direct du dépôt public.
|
||||||
|
- name: Récupérer les sources
|
||||||
- uses: https://github.com/actions/checkout@v4
|
run: |
|
||||||
|
set -eu
|
||||||
|
apk add --no-cache git
|
||||||
|
git init -q
|
||||||
|
git remote add origin "${{ github.server_url }}/${{ github.repository }}.git"
|
||||||
|
git fetch -q --depth 1 origin "${{ github.ref_name }}"
|
||||||
|
git checkout -q FETCH_HEAD
|
||||||
|
|
||||||
- name: Calculer les tags
|
- name: Calculer les tags
|
||||||
id: tags
|
id: tags
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue