[SANP390] last update from marilena #49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update GPD-Payments XSD | |
# Controls when the workflow will run | |
on: | |
push: | |
branches: | |
- master | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
permissions: | |
id-token: write | |
contents: read | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
update-file: | |
name: Update GPD-Payments XSD | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# open a PR on GPD-Payments repo | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
# prepare XSD template for GPD repo | |
- name: Modify file | |
run: | | |
mkdir -p "${GITHUB_WORKSPACE}/resources/xsd" | |
mkdir -p "${GITHUB_WORKSPACE}/resources/xsd-common" | |
cp ${GITHUB_WORKSPACE}/wsdl/xsd/paForNode.xsd ${GITHUB_WORKSPACE}/resources/xsd/paForNode.xsd | |
cp ${GITHUB_WORKSPACE}/xsd-common/sac-common-types-1.0.xsd ${GITHUB_WORKSPACE}/resources/xsd-common/sac-common-types-1.0.xsd | |
- name: Create pull request | |
uses: jacopocarlini/action-pull-request-another-repo@main | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.BOT_TOKEN_GITHUB }} | |
with: | |
source_folder: 'resources' | |
destination_repo: 'pagopa/pagopa-gpd-payments' | |
destination_folder: 'src/main/resources' | |
destination_base_branch: 'main' | |
destination_head_branch: 'XSD-update' | |
user_email: '[email protected]' | |
user_name: 'pagopa-github-bot' | |
allow_force_push: 'true' |