Add GitHub workflow, cron-based to update driverless (AirPrint, IPP Everywhere) printer list
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 68/100
Rechercherichtung
Beginne mit driverless/update-printer-list.sh und der daraus generierten Datei public/assets/json/driverless.json; überprüfe, wie das Skript curl und Python verwendet, einschließlich sys und json. Sieh dir anschließend die Update- und Versionierungs-Workflows im CUPS Snap repo und die GitHub create-pull-request action an. Als erledigt gilt die Aufgabe, wenn ein cron workflow das Skript ausführt und einen Pull Request für aktualisierte Druckerdaten öffnet.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
See issue #223, starting with this comment to the end.
@michaelrsweet said:
The current scripts merge the AirPrint and IPP Everywhere lists. Mopria does not provide a public list of printers (unfortunately), but the number of Mopria-ready printers that are not AirPrint or IPP Everywhere is probably close to (if not) 0.
I ran my scripts manually this time. I normally have them setup to run on one of my development systems once a month since the lists don't change that often. I don't think we could do this via GitHub CI directly - maybe we could create a PR but I'm not sure. The scripts can certainly be run from CI, it is just how to generate the PR with the changes? (I know I probably don't have the time to make that work right now, maybe later...)
... and to follow up on this, apparently there is a GitHub action for this. So it is possible we can do it fairly easily, but again I don't have time to write it up today...
From a clone of the repository:
cd driverless ./update-printer-list.shThe updated "public/assets/json/driverless.json" file is then ready to be committed and/or turned into a PR.
The script uses curl and python, with the python sys and json modules/libraries (in case they are not in the default CI running image...)
For generating PRs also have a look at the workflows for update and versioning automation in the CUPS Snap repo.
@rudra-iitm @gativarshney @rkt0209 could somebody of you have a look?
- Vorherrschende Sprache
- TypeScript
- Sterne
- 20
- Forks
- 43
- Ø Merge
- 7 Std. 45 Min.
- Gemergte PRs (30 T.)
- 8
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus OpenPrinting/openprinting.github.io
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
OpenPrinting/openprinting.github.io#240 · 3 Kommentare ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
OpenPrinting/openprinting.github.io#164 · 1 Kommentar ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
OpenPrinting/openprinting.github.io#159 · 7 Kommentare ·
Alle Issues in OpenPrinting/openprinting.github.io
Ähnliche Issues
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
AloisSeckar/elrh-cosca#36 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 73/100
cursor/community-plugins#572 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Plugin] calendarOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
MUKE-coder/grit#228 ·
-
bug status:needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
dongdongbh/Mindwtr#1587 ·
Maintainer antworten meist innerhalb von 1 Tag