Skip to content

Updated API from documentation release #1074

Updated API from documentation release

Updated API from documentation release #1074

Workflow file for this run

on:
push:
paths:
- 'api-specs/**'
workflow_dispatch:
name: Update RAML
permissions:
contents: write # for stefanzweifel/git-auto-commit-action to push code in repo
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 generate lint
if: github.ref != 'refs/heads/main'
- run: sudo chmod 777 /usr/local/bin && make 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]>