inspirezonetech / inspirezonetech/TeachMePythonLikeIm5

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

Offen
#99 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug github-actions hacktoberfest help wanted
Vorherrschende Sprache
Python
Sterne
29
Forks
41
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne mit dem Lesen von execute-modified-python-file.yml und run-modified-python.sh, und reproduziere dann das Problem, indem du eine brandneue Python-Datei hinzufügst und files_modified.json sowie die Ausgabe der Action überprüfst. Als erledigt gilt die Aufgabe, wenn die Action neu hinzugefügte Python-Dateien erkennt und sie ausführt, anstatt „keine geänderten Dateien“ zu melden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
github-actions, python, shell
Bereich
ci-cd
Issue-Typ
Bug
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.