-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathaction.yml
More file actions
89 lines (81 loc) · 3.19 KB
/
action.yml
File metadata and controls
89 lines (81 loc) · 3.19 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: "Create confluence release notes"
description: "Do release note actions in confluence and jira"
inputs:
TARGET_ENVIRONMENT:
required: true
description: "Target Environment"
RELEASE_TAG:
required: false
description: "The tag we are releasing - only used for create_rc_release_notes"
CONFLUENCE_PAGE_ID:
required: true
description: "The id of confluence page to update or create under"
CREATE_RC_RELEASE_NOTES:
required: true
description: "whether to create rc release notes page instead of normal release notes"
default: "false"
DEV_CLOUD_FORMATION_EXECUTE_LAMBDA_ROLE:
required: true
description: "The role to assume to execute the release notes lambda"
DEV_CLOUD_FORMATION_CHECK_VERSION_ROLE:
required: true
description: "The dev cloud formation deploy role"
TARGET_CLOUD_FORMATION_CHECK_VERSION_ROLE:
required: true
description: "The target cloud formation deploy role"
runs:
using: "composite"
steps:
- name: connect to target account
uses: aws-actions/configure-aws-credentials@00943011d9042930efac3dcd3a170e4273319bc8
with:
aws-region: eu-west-2
role-to-assume: ${{ inputs.TARGET_CLOUD_FORMATION_CHECK_VERSION_ROLE }}
role-session-name: fhir-validator-lambda-release-notes-target
- name: Get deployed tag on target
shell: bash
working-directory: .github/scripts
env:
TARGET_ENVIRONMENT: ${{ inputs.TARGET_ENVIRONMENT }}
run: ./get_target_deployed_tag.sh
- name: connect to dev account
uses: aws-actions/configure-aws-credentials@00943011d9042930efac3dcd3a170e4273319bc8
with:
aws-region: eu-west-2
role-to-assume: ${{ inputs.DEV_CLOUD_FORMATION_CHECK_VERSION_ROLE }}
role-session-name: fhir-validator-lambda-release-notes-dev
- name: get current dev tag
shell: bash
working-directory: .github/scripts
run: ./get_current_dev_tag.sh
- name: connect to dev account to run release notes lambda
uses: aws-actions/configure-aws-credentials@00943011d9042930efac3dcd3a170e4273319bc8
with:
aws-region: eu-west-2
role-to-assume: ${{ inputs.DEV_CLOUD_FORMATION_EXECUTE_LAMBDA_ROLE }}
role-session-name: fhir-validator-lambda-release-notes-run-lambda
unset-current-credentials: true
- name: create int release notes
shell: bash
working-directory: .github/scripts
if: inputs.TARGET_ENVIRONMENT == 'int' && inputs.CREATE_RC_RELEASE_NOTES == 'false'
env:
ENV: INT
PAGE_ID: ${{ inputs.CONFLUENCE_PAGE_ID }}
run: ./create_env_release_notes.sh
- name: create int rc release notes
shell: bash
working-directory: .github/scripts
if: inputs.TARGET_ENVIRONMENT == 'int' && inputs.CREATE_RC_RELEASE_NOTES == 'true'
env:
RELEASE_TAG: ${{ inputs.RELEASE_TAG }}
PAGE_ID: ${{ inputs.CONFLUENCE_PAGE_ID }}
run: ./create_int_rc_release_notes.sh
- name: create prod release notes
shell: bash
working-directory: .github/scripts
if: inputs.TARGET_ENVIRONMENT == 'prod'
env:
ENV: PROD
PAGE_ID: ${{ inputs.CONFLUENCE_PAGE_ID }}
run: ./create_env_release_notes.sh