Skip to content

fix: adjusting cache to starter v1.13.1 PAGOPA-1148 #161

fix: adjusting cache to starter v1.13.1 PAGOPA-1148

fix: adjusting cache to starter v1.13.1 PAGOPA-1148 #161

Workflow file for this run

name: Update Code
on:
issue_comment:
types: [created, edited]
permissions:
contents: write
pull-requests: write
issues: write
jobs:
update:
name: Update Openapi and Formatting
runs-on: ubuntu-18.04
if: ${{ contains(github.event.comment.body, 'update_code') }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.API_TOKEN_GITHUB }}
- name: Checkout Pull Request
run: hub pr checkout ${{ github.event.issue.number }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Update OpenApi/Swagger file
run: |
cd ./openapi
sh ./generate_openapi.sh
- name: Formatting
uses: axel-op/googlejavaformat-action@v3
with:
args: "--replace"
commit-message: "Google Java format [skip ci]"