documentation et automatisation de act en local
This commit is contained in:
22
CMD.md
Normal file
22
CMD.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# Utilisation de `act` avec des workflows Gitea
|
||||
```bash
|
||||
# Lister les workflows trouvés sous .gitea/workflows
|
||||
act -W .gitea/workflows -l
|
||||
|
||||
# Lancer l’événement "push/pull_request/workflow_dispatch/release"
|
||||
act -W .gitea/workflows push
|
||||
|
||||
# Lancer l’événement "pull_request"
|
||||
act -W .gitea/workflows pull_request
|
||||
|
||||
# N’exécuter qu’un seul job du workflow (ex. "build")
|
||||
act -W .gitea/workflows -j build
|
||||
```
|
||||
# Dry-run et exécution en arrière-plan
|
||||
```bash
|
||||
echo 'Lancement en dry-run de l’événement "push"'
|
||||
act -n push
|
||||
|
||||
echo 'Activation de l’événement "push"'
|
||||
act push > act_push.log 2>&1 &
|
||||
```
|
||||
Reference in New Issue
Block a user