Skip to content

Add way to insert dlp jobs and query dlp jobs / results / findings. A… #16

Add way to insert dlp jobs and query dlp jobs / results / findings. A…

Add way to insert dlp jobs and query dlp jobs / results / findings. A… #16

name: Generating openapi spec
# Controls when the workflow will run
on:
pull_request:
push:
branches:
- master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Generate OpenAPI Docs
uses: eskatos/gradle-command-action@v1
with:
arguments: "clean generateOpenApiDocs"
wrapper-cache-enabled: true
dependencies-cache-enabled: true
configuration-cache-enabled: true
- name: Move openapi.json
run: mv build/openapi.json .
- name: Commit & Push
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Overwritten by Github Actions