Bundle Specification #97
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
name: Check Bundle | |
on: push | |
jobs: | |
bundle: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout spec | |
uses: actions/checkout@v3 | |
- name: bundle spec | |
uses: mpetrunic/[email protected] | |
with: | |
command: "bundle --outfile bundled/openapi.yaml -t yaml openapi.yaml" | |
- name: push specification | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add bundled/openapi.yaml | |
git diff-index --quiet HEAD || git commit -m "Bundle Specification" | |
git push |