8000 fix: Payments flow - Added descriptions and removed azure_devops_apps… · pagopa/github-actions-template@922ed4e · GitHub
[go: up one dir, main page]

Skip to content

Commit 922ed4e

Browse files
fix: Payments flow - Added descriptions and removed azure_devops_apps input (#68)
* added descriptions and removed azure_devops_apps input * minor fix * minor fix * fix description format
1 parent 3ae6a42 commit 922ed4e

File tree

3 files changed

+40
-14
lines changed

3 files changed

+40
-14
lines changed

payments-flow-docker-snapshot/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ jobs:
4242
with:
4343
current_branch: ${{ github.ref_name }}
4444
enable_azure_devops_step: 'true'
45-
azure_devops_apps: "[one-color]"
4645
azure_devops_project_url: 'https://dev.azure.com/pagopaspa/devopslab-projects'
4746
azure_devops_pipeline_name: 'devopslab-diego-deploy.deploy'
4847
azure_devops_pat: ${{ secrets.AZUREDEVOPS_PAT }}

payments-flow-docker-snapshot/action.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,30 @@ description: Payments flow docker snapshot
33

44
inputs:
55
current_branch:
6+
description: Branch used to launch the action
67
required: true
78
docker_labels:
9+
description: Labels for docker push
810
required: false
911
default: |
1012
maintainer=https://pagopa.it
1113
org.opencontainers.image.source=https://github.com/${{ github.repository }}
1214
enable_azure_devops_step:
15+
description: Are azure devops triggers enabled?
1316
required: false
14-
default: false
15-
azure_devops_apps:
16-
required: false
17+
default: "false"
1718
azure_devops_project_url:
19+
description: Azure devops project url like (e.g. `https://dev.azure.com/pagopaspa/arc-projects``)
1820
required: false
1921
azure_devops_pipeline_name:
22+
description: Pipeline name inside the project (e.g. `arc-cittadini-deploy-aks.deploy`)
2023
required: false
2124
azure_devops_pat:
25+
description: Personal secret azure devops PAT
2226
required: false
2327
default: ''
2428
azure_template_parameters:
29+
description: Json attribute with all the parameters that must be send to the pipeline. See README for example (⚠️ this parameters must exists)
2530
required: false
2631

2732
runs:
@@ -35,6 +40,9 @@ runs:
3540
username: ${{ github.actor }}
3641
password: ${{ github.token }}
3742

43+
#
44+
# Docker
45+
#
3846
- name: 🤔 Set Docker tags
3947
id: set_docker_tags
4048
shell: bash
@@ -54,9 +62,9 @@ runs:
5462
tags: ${{ steps.set_docker_tags.outputs.DOCKER_TAGS }}
5563
labels: ${{ inputs.docker_labels }}
5664

57-
#
58-
# AZDO
59-
#
65+
#
66+
# AZDO
67+
#
6068
- name: 🤔 Check azure_devops_pat
6169
if: ${{ inputs.enable_azure_devops_step == 'true' }}
6270
shell: bash

payments-flow-release/action.yml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,30 @@ description: Payments release
33

44
inputs:
55
current_branch:
6+
description: Branch used to launch the action
67
required: true
78
docker_labels:
9+
description: Labels for docker push
810
required: false
911
default: |
1012
maintainer=https://pagopa.it
1113
org.opencontainers.image.source=https://github.com/${{ github.repository }}
1214
enable_azure_devops_step:
15+
description: Are azure devops triggers enabled?
1316
required: false
14-
default: false
17+
default: "false"
1518
azure_devops_project_url:
19+
description: Azure devops project url like (e.g. `https://dev.azure.com/pagopaspa/arc-projects``)
1620
required: false
1721
azure_devops_pipeline_name:
22+
description: Pipeline name inside the project (e.g. `arc-cittadini-deploy-aks.deploy`)
1823
required: false
1924
azure_devops_pat:
25+
description: Personal secret azure devops PAT
2026
required: false
27+
default: ''
2128
azure_template_parameters:
29+
description: Json attribute with all the parameters that must be send to the pipeline. See README for example (⚠️ this parameters must exists)
2230
required: false
2331

2432
runs:
@@ -44,9 +52,9 @@ runs:
4452
tag_format: ${{ steps.set-tag-format.outputs.TAG_FORMAT }}
4553
branches: ${{ github.ref_name }}
4654

47-
#
48-
# Docker
49-
#
55+
#
56+
# Docker
57+
#
5058
- name: 🔨 Set Docker tags
5159
id: set_docker_tags
5260
if: steps.release.outputs.new_release_published == 'true'
@@ -79,9 +87,20 @@ runs:
7987
tags: ${{ steps.set_docker_tags.outputs.DOCKER_TAGS }}
8088
labels: ${{ inputs.docker_labels }}
8189

82-
#
83-
# AZDO
84-
#
90+
#
91+
# AZDO
92+
#
93+
- name: 🤔 Check azure_devops_pat
94+
if: ${{ inputs.enable_azure_devops_step == 'true' }}
95+
shell: bash
96+
run: |
97+
if [ -z "${{ inputs.azure_devops_pat }}" ]; then
98+
echo "Error: azure_devops_pat is empty. This is required for triggering the Azure DevOps pipeline."
99+
exit 1
100+
fi
101+
102+
echo "🔨 Start launch trigger with Azure Devops"
103+
85104
- name: 🚂 Trigger Azure DevOps pipeline
86105
if: inputs.enable_azure_devops_step == 'true' && steps.release.outputs.new_release_published == 'true'
87106
# https://github.com/pagopa/azure-pipelines/releases/tag/v2.0.0

0 commit comments

Comments
 (0)
0