A different approach at gating the commit #33
This file contains 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
name: AsyncAPI documents processing | |
on: | |
push: | |
branches: [ '*' ] | |
pull_request: | |
branches: [ '*' ] | |
jobs: | |
generate: | |
runs-on: ubuntu-latest | |
steps: | |
#"standard step" where repo needs to be checked-out first | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
#Using another action for AsyncAPI for validation | |
- name: Validating AsyncAPI document | |
uses: WaleedAshraf/[email protected] | |
with: | |
filepath: src/main/asyncapi/network_survey_messaging.yaml | |
#In case you do not want to use defaults, you for example want to use different template | |
- name: Generating HTML from my AsyncAPI document | |
uses: docker://asyncapi/github-action-for-generator:2.1.13 | |
with: | |
template: '@asyncapi/[email protected]' #In case of template from npm, because of @ it must be in quotes | |
filepath: src/main/asyncapi/network_survey_messaging.yaml | |
output: generated-html |