Skip to content

Merge pull request #314 from pagopa/PPANTT-45-add-delete-maintenance-api #105

Merge pull request #314 from pagopa/PPANTT-45-add-delete-maintenance-api

Merge pull request #314 from pagopa/PPANTT-45-add-delete-maintenance-api #105

Workflow file for this run

name: Update Infra
on:
push:
branches:
- main
paths:
- 'openapi/openapi.json'
workflow_dispatch:
jobs:
update_infra:
name: Update Infra
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
# prepare openapi template for infra repo
- run: |
mkdir -p "${GITHUB_WORKSPACE}/infra"
jq '."servers"[0]."url" |= "${host}/apiconfig/api/v1"' "${GITHUB_WORKSPACE}/openapi/openapi.json" > "${GITHUB_WORKSPACE}/infra/_openapi.json.tpl"
# open a PR on infra repo
- name: Create pull request
uses: jacopocarlini/action-pull-request-another-repo@main
env:
API_TOKEN_GITHUB: ${{ secrets.BOT_TOKEN_GITHUB }}
with:
source_folder: 'infra'
destination_repo: 'pagopa/pagopa-infra'
destination_folder: 'src/domains/apiconfig-app/api/apiconfig_api/v1'
destination_base_branch: 'main'
destination_head_branch: 'ApiConfig-swagger-update'
user_email: 'github-bot@pagopa.it'
user_name: 'pagopa-github-bot'
allow_force_push: 'true'