Updated API from documentation release #992
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
on: | |
push: | |
paths: | |
- 'api-specs/**' | |
workflow_dispatch: | |
name: Update RAML | |
jobs: | |
generate: | |
name: "Update RAML spec" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: | |
- "7.4" | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v2 | |
- name: "Install Java" | |
uses: actions/setup-java@v1 | |
with: | |
java-version: '13' | |
- run: sudo chmod 777 /usr/local/bin && make -j2 generate lint | |
if: github.ref != 'refs/heads/main' | |
- run: sudo chmod 777 /usr/local/bin && make -j2 build | |
if: github.ref == 'refs/heads/main' | |
- name: "check pending changes" | |
run: echo "CHANGES_PENDING=`git status --porcelain -- ':(exclude)*gen.properties' | grep -c ^`" >> $GITHUB_ENV | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
if: env.CHANGES_PENDING != '0' | |
with: | |
commit_message: "TASK: Updating RAML types, Postman and OAS definition" | |
file_pattern: oas uml | |
commit_user_name: Auto Mation | |
commit_user_email: [email protected] | |
commit_author: Auto Mation <[email protected]> |