-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcreate-github-draft-release.yaml
More file actions
59 lines (57 loc) · 2.57 KB
/
create-github-draft-release.yaml
File metadata and controls
59 lines (57 loc) · 2.57 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
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: "1.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
default: "nbs-infrastructure"
required: true
artifact_release_version:
description: "artifact_release_version - The artifact release version (no 'v', this is added only to the final). [View previous release assets versions](https://github.com/CDCgov/NEDSS-Infrastructure/releases)"
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: "terraform/aws/app-infrastructure, terraform/aws/samples, scripts, README.md"
required: true
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: ""
required: false
#token permissions
permissions:
id-token: write
contents: write
pull-requests: write
jobs:
create-draft-release:
uses: CDCgov/NEDSS-Workflows/.github/workflows/Create-github-draft-release.yaml@main
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_APP_ID: ${{secrets.GIT_APP_ID}}
GIT_APP_PRIVATE_KEY: ${{secrets.GIT_APP_PRIVATE_KEY}}