generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (63 loc) · 2.97 KB
/
create-github-draft-release.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
59
60
61
62
63
64
65
name: Create draft release
on:
workflow_dispatch:
inputs:
update_zip_only:
description: "update_zip_only - Will delete and update the artifact from an existing draft release."
type: boolean
default: false
required: true
release_version:
description: "release_version - A release version (no 'v', this is added only to the final) to be created upon publishing the draft release (tag must not already exist in repository)."
type: string
default: "7.x.y"
required: true
release_name:
description: "release_name - Provide a custom name for your release. If none is provided the release name will match the provided release_version."
type: string
default: "NONE"
required: false
artifact_base_name:
description: "artifact_base_name: Base name of the created artifact. The release version is appended to this name."
type: string
required: true
artifact_release_version:
description: "artifact_release_version - The artifact release version (no 'v', this is added only to the final)."
type: string
required: true
paths:
description: "paths - A CSV string detailing which files and directories should be included in the artifact. If not provided only the standard artifacts will be created."
type: string
default: "charts/modernization-api, charts/nbs-gateway, charts/dataingestion-service, charts/nginx-ingress, charts/elasticsearch-efs, charts/nifi-efs, k8-manifests/cluster-issuer-prod.yaml"
required: false
excluded_paths:
description: "excluded_paths - A CSV list detailing specific files and directories to exclude from the provided paths (this variable serves only to limit scope of the paths variable)."
type: string
default: "charts/modernization-api/values-*, charts/nbs-gateway/values-*, charts/dataingestion-service/values-*, charts/nginx-ingress/values-*, charts/elasticsearch-efs/values-*, charts/nifi-efs/values-*"
required: false
secrets:
GIT_USER_EMAIL:
description: "Secret named GIT_USER_EMAIL for the CI user email."
required: true
GIT_USER_NAME:
description: "Secret named ECR_REPO_BASE_NAME for the CI user name."
required: true
#token permissions
permissions:
id-token: write
contents: write
pull-requests: write
jobs:
create-draft-release:
uses: CDCgov/NEDSS-Workflows/.github/workflows/[email protected]
with:
update_zip_only: ${{inputs.update_zip_only}}
release_version: ${{inputs.release_version}}
release_name: ${{inputs.release_name}}
artifact_base_name: ${{inputs.artifact_base_name}}
artifact_release_version: ${{inputs.artifact_release_version}}
paths: ${{inputs.paths}}
excluded_paths: ${{inputs.excluded_paths}}
secrets:
GIT_USER_EMAIL: ${{secrets.GIT_USER_EMAIL}}
GIT_USER_NAME: ${{secrets.GIT_USER_NAME}}