forked from github/codeql-coding-standards
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (48 loc) · 1.62 KB
/
create-draft-release.yml
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
name: Create draft release
on:
workflow_dispatch:
inputs:
release_version_tag:
description: |
The tag for the new draft release, e.g. v0.5.1.
required: true
codeql_analysis_threads:
description: |
Number of threads to evaluate queries
required: true
default: 6
aws_ec2_instance_type:
description: |
Recommended specs: 8+ vCPU 32+ GB RAM (e.g. t2.2xlarge, r5.2xlarge)
required: true
default: r5.2xlarge
jobs:
create-draft-release:
name: Create draft release
runs-on: ubuntu-latest
env:
# AWS CONFIGURATION
AWS_EC2_INSTANCE_TYPE: ${{ github.event.inputs.aws_ec2_instance_type }}
# CODEQL CONFIGURATION
CODEQL_ANALYSIS_THREADS: ${{ github.event.inputs.codeql_analysis_threads }}
# INTEGRATION TESTING CONFIGURATION
INTEGRATION_TESTING_ACCESS_TOKEN: ${{ secrets.INTEGRATION_TESTING_ACCESS_TOKEN }}
WORKFLOW_ID: 11846210
# RELEASE VERSION TAG
RELEASE_VERSION_TAG: ${{ github.event.inputs.release_version_tag }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install generate_release_notes.py dependencies
run: pip install -r scripts/requirements.txt
- name: Create draft release
run: |
scripts/release/create_draft_release.sh ${GITHUB_REF#refs/heads/} "$RELEASE_VERSION_TAG"
env:
GITHUB_TOKEN: ${{ github.token }}