From 6439820d1820437c11126829d00b030f96110a52 Mon Sep 17 00:00:00 2001 From: FedericoRuzzier <49512050+FedericoRuzzier@users.noreply.github.com> Date: Thu, 5 Oct 2023 10:43:00 +0200 Subject: [PATCH 1/2] adding common to action --- .github/workflows/update_gpd_payments.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update_gpd_payments.yaml b/.github/workflows/update_gpd_payments.yaml index 4f317cc..47f3662 100644 --- a/.github/workflows/update_gpd_payments.yaml +++ b/.github/workflows/update_gpd_payments.yaml @@ -29,8 +29,10 @@ jobs: # prepare XSD template for GPD repo - name: Modify file run: | - mkdir -p "${GITHUB_WORKSPACE}/xsd" - cp ${GITHUB_WORKSPACE}/wsdl/xsd/paForNode.xsd ${GITHUB_WORKSPACE}/xsd/paForNode.xsd + 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: @@ -38,7 +40,7 @@ jobs: with: source_folder: 'xsd' destination_repo: 'pagopa/pagopa-gpd-payments' - destination_folder: 'src/main/resources/xsd' + destination_folder: 'src/main/resources' destination_base_branch: 'main' destination_head_branch: 'XSD-update' user_email: 'github-bot@pagopa.it' From 74299b402d285650c471baaca428f4d3c72665a3 Mon Sep 17 00:00:00 2001 From: FedericoRuzzier <49512050+FedericoRuzzier@users.noreply.github.com> Date: Thu, 5 Oct 2023 10:46:39 +0200 Subject: [PATCH 2/2] fixing source directory --- .github/workflows/update_gpd_payments.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update_gpd_payments.yaml b/.github/workflows/update_gpd_payments.yaml index 47f3662..f7985d4 100644 --- a/.github/workflows/update_gpd_payments.yaml +++ b/.github/workflows/update_gpd_payments.yaml @@ -38,7 +38,7 @@ jobs: env: API_TOKEN_GITHUB: ${{ secrets.BOT_TOKEN_GITHUB }} with: - source_folder: 'xsd' + source_folder: 'resources' destination_repo: 'pagopa/pagopa-gpd-payments' destination_folder: 'src/main/resources' destination_base_branch: 'main'