-
Notifications
You must be signed in to change notification settings - Fork 15
58 lines (51 loc) · 1.61 KB
/
update_gpd_payments.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Update GPD-Payments XSD
# Controls when the workflow will run
on:
pull_request:
branches:
- SANP3.5.0
types:
- opened
- synchronize
- reopened
push:
branches:
- SANP3.5.0
# 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}/xsd"
cp ${GITHUB_WORKSPACE}/wsdl/xsd/paForNode.xsd ${GITHUB_WORKSPACE}/xsd/paForNode.xsd
- name: Get branch names
uses: tj-actions/branch-names@v7
- name: Current branch name
run: |
echo ${{ steps.branch-name.outputs.current_branch }}
# - name: Create pull request
# uses: jacopocarlini/action-pull-request-another-repo@main
# env:
# API_TOKEN_GITHUB: ${{ secrets.BOT_TOKEN_GITHUB }}
# with:
# source_folder: 'xsd'
# destination_repo: 'pagopa/pagopa-gpd-payments'
# destination_folder: 'src/main/resources/xsd'
# destination_base_branch: 'main'
# destination_head_branch: 'XSD-update'
# user_email: '[email protected]'
# user_name: 'pagopa-github-bot'
# allow_force_push: 'true'