Skip to content

fix: agency topic conversion. Get rid of topic cache to avoid multite… #42

fix: agency topic conversion. Get rid of topic cache to avoid multite…

fix: agency topic conversion. Get rid of topic cache to avoid multite… #42

name: Push Admin API documentation
on:
push:
paths:
- "api/agencyadminservice.yaml"
branches-ignore:
- "master"
- "develop"
jobs:
documentation:
name: Pushes changes to Admin API
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup JVM
uses: actions/setup-java@v1
with:
java-version: 11.0.10
java-package: jdk
architecture: x64
- name: Caching maven dependencies
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Maven generate sources
run: mvn generate-sources
- name: Push Admin API to documentation
uses: andstor/copycat-action@v3
with:
personal_token: ${{ secrets.GH_PACKAGE_RELEASE_TOKEN }}
src_path: ../target/generated-sources/markdown/agencyservice
dst_path: docs/backend/admin/agencyservice
dst_owner: ${{ github.repository_owner }}
dst_repo_name: ${{ secrets.DOCUMENTATION_REPO }}
src_branch: develop
dst_branch: adminapi
clean: true
commit_message: "docs: updated agency service admin api description"
- name: Maven clean
run: mvn -B -Pprod clean