grid-x/OpenAPI Discourse Upload Action

Uploads an OpenAPI specification to a Discourse topic for rendering using https://github.com/wwerner/discourse-rapidoc-theme-component

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
discourse_urlyour discourse instance domain, e.g. "community.acme.comyes
discourse_post_idthe ID of the Discourse post to updateyes
discourse_api_keyyour discourse API key. It needs `posts - edit` and `uploads - create` permissionsyes
discourse_userthe discourse user on whose behalf the action should be executedyes
spec_filethe OAS file to uploadyes
github_shashort commit hash to be put into to post for traceabilityyes
body_templateCustom post body template. Supports placeholders: {ORIGINAL_FILENAME}, {DISCOURSE_URL}, {UPLOAD_PATH}, {UPLOAD_URL}, {DATE}, {COMMIT} noAPI Documentation/Specification `{ORIGINAL_FILENAME}` ```apidoc https://{DISCOURSE_URL}/{UPLOAD_PATH} ``` [{ORIGINAL_FILENAME}|attachment]({UPLOAD_URL}) *last updated*: {DATE} (sha {COMMIT})

no outputs