inspirezonetech / inspirezonetech/TeachMePythonLikeIm5

GitHub action execute-modified-python-file.yml will not run when a new file is created and added to repo

Aperta
#99 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug github-actions hacktoberfest help wanted
Lingua principale
Python
Stelle
29
Fork
41
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**About Bug or problem**
The GitHub action to execute python file will not run when a file is created rather than modified.
This is because the action is designed only to check files that were **modified** and so will ignore files that are new to the repo.

**Steps to reproduce**
Create a brand new python file and add to the repo. The GitHub action will not see any files as being modified and will print:
```
Run echo "job: running script to execute modified file:"
job: running script to execute modified file:
run-sh: Inside run-modified-python.sh
run-sh: Content of files_modified.json: []
run-sh: After parsing, file to execute:
run-sh: File modified is not a python file! Will not execute
job: Done
```

**Potential fix**
Modify action `execute-modified-python-file.yml` to detect when new files are added to the repo and execute them.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia leggendo execute-modified-python-file.yml e run-modified-python.sh, quindi riproduci il problema aggiungendo un file Python completamente nuovo e controllando files_modified.json e l'output dell'action. L'attività è completata quando l'action rileva i file Python appena aggiunti e li esegue invece di segnalare che non ci sono file modificati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
github-actions, python, shell
Ambito
ci-cd
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.