27 lines
718 B
Markdown
27 lines
718 B
Markdown
# commande Tree
|
||
```bash
|
||
tree -a -I 'node_modules|coverage|logs|.vscode|.git|dist|.git|.venv|__pycache__'
|
||
```
|
||
# 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 &
|
||
```
|