feat: GitHub Action - jedyna powierzchnia odkrywania, na ktorej nas nie ma - #222
Merged
Merged
Conversation
…t from Read against GitHub's own documentation rather than recalled. Actions in the Marketplace are not reviewed and appear immediately, provided the repository is public, holds a single action.yml at its root, and the name is not already taken or reserved. All three hold. The listing itself needs one thing a person must do once: draft a release with "Publish this Action to the GitHub Marketplace" ticked, which requires accepting the Marketplace Developer Agreement the first time. Why this and not another page: the Marketplace is browsed by category and has its own search, so it reaches people who will never see this repository. Topics are maxed at twenty, the social preview is set, releases are running, and the directory submissions are open. This is the surface that was simply empty. The action is not a wrapper for its own sake. It adds the thing that makes a tool worth putting in a pipeline rather than running once: it fails the job when the mail server's certificate is inside a window you choose. Nobody watches a mail certificate. It expires on a Sunday and the first report is a user saying scanning stopped working. cert-expiry-days turns that into a build failure two weeks earlier. fail-on-error exists because the other use is a scheduled canary, and a canary that pages somebody at 3am for a relay that is not theirs is a canary that gets deleted. No install step and no npm. The tool has no dependencies, so the action runs the file that ships beside it, which also means it cannot break because a registry was slow or a tag moved. CI runs the action from this repository on every change to the code and asserts that its outputs are usable - ok is a boolean, the JSON carries every port asked for. A Marketplace listing that does not run is worse than no listing: it is a public page that fails for whoever tries it first.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Przeczytane w dokumentacji GitHuba, nie z pamięci. Akcje w Marketplace nie przechodzą przeglądu i pojawiają się natychmiast, o ile repo jest publiczne, ma jeden
action.ymlw korzeniu, a nazwa nie jest zajęta ani zastrzeżona. Wszystkie trzy warunki spełniamy.Do samego wystawienia potrzebna jest jedna czynność człowieka, raz: wydanie z zaznaczonym „Publish this Action to the GitHub Marketplace" — za pierwszym razem z akceptacją umowy dewelopera.
Czemu akurat to
Marketplace przegląda się po kategoriach i ma własną wyszukiwarkę — dociera do ludzi, którzy tego repozytorium nigdy nie zobaczą. Tematy mamy wypełnione do maksimum (20/20), karta społecznościowa ustawiona, wydania idą, zgłoszenia katalogowe otwarte. To jest powierzchnia, która była po prostu pusta.
To nie jest opakowanie dla samego opakowania
Dokłada rzecz, dla której w ogóle wstawia się narzędzie do pipeline'u zamiast uruchomić raz: wywala build, gdy certyfikat serwera pocztowego wchodzi w wybrane przez Ciebie okno.
Nikt nie pilnuje certyfikatu poczty. Wygasa w niedzielę, a pierwszym zgłoszeniem jest użytkownik mówiący, że skanowanie przestało działać.
cert-expiry-dayszamienia to w czerwony build dwa tygodnie wcześniej.fail-on-erroristnieje, bo drugie zastosowanie to kanarek na harmonogramie — a kanarek budzący kogoś o 3 w nocy z powodu cudzego przekaźnika to kanarek, którego się kasuje.Zero instalacji i zero npm. Narzędzie nie ma zależności, więc akcja uruchamia plik leżący obok — czyli nie może się wywrócić przez wolny rejestr ani przesunięty tag.
CI uruchamia tę akcję z tego repozytorium przy każdej zmianie kodu i sprawdza, że wyjścia nadają się do użycia. Wystawka w Marketplace, która nie działa, jest gorsza niż jej brak: to publiczna strona psująca się pierwszemu, kto spróbuje.