Upgrade woodpecker config #235
No reviewers
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
meta
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: AFPy/python-docs-fr#235
Loading…
Reference in New Issue
No description provided.
Delete Branch "mdk/python-docs-fr:mdk-woodpecker"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Also I don't remember why there's those git things here, so let's try
without…
Ahhh les petits trucs git c'était pour
SRCS = $(shell git diff --name-only --diff-filter=d $(BRANCH) | grep '.po$$')
.Et là on dirait que ça passe sans, est-ce que woodpecker à changé sa manière de
fetch
?Oh wow, woodpecker does strange things:
it tells git that my PR is the 3.11 branch, funny...?
Woodpecker: renamed pipeline to steps.to [WIP] Woodpecker: renamed pipeline to steps.8f54220823
toa488c776fc
[WIP] Woodpecker: renamed pipeline to steps.to Upgrade woodpecker configDonc oui, amusant, par défaut la branche qui est crée pour le checkout c'est "CI_COMMIT_BRANCH" qui vaut la branche cible dans le cas d'une PR, cf. https://woodpecker-ci.org/plugins/Git%20Clone et https://woodpecker-ci.org/docs/usage/environment#built-in-environment-variables.
C'est bon pour moi, qqun se sent de review ? :)
@ -4,0 +22,4 @@
fetch target branch:
image: python
commands:
- BRANCH="$(grep ^BRANCH Makefile | awk '{print $3}')"
Ceci suppose que nous mettions bien une espace avant et après le :=
Supposition suffisamment fiable ? utiliser ${CI_COMMIT_SOURCE_BRANCH} ?
0021762563
?@ -4,0 +24,4 @@
commands:
- BRANCH="$(make print-BRANCH)"
- git fetch origin --no-tags +refs/heads/$BRANCH
- 'git branch $BRANCH origin/$BRANCH ||:'
Le ||: est toujours nécessaire, sachant que l'on déclenche seulement en cas de PR ?
Il répond toujours vrai, donc masque les erreurs...
Je l'enlève, on verra s'il gêne, dans ce cas ça méritera un commentaire.
0021762563
toaf33329364