forked from DataDog/datadog-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 1.39 KB
/
create_release_schedule.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
name: "Create release schedule on confluence"
on:
workflow_dispatch:
inputs:
version:
description: 'Full version of the release to schedule (e.g. 7.31.0)'
required: true
type: string
freeze_date:
description: 'Isoformat date when we freeze CI (e.g. 2023-12-31)'
required: true
type: string
permissions: {}
jobs:
create_release_schedule:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ github.head_ref }}
persist-credentials: false
- name: Install python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: 3.11
cache: "pip"
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r tasks/libs/requirements-github.txt -r tasks/requirements_release_tasks.txt
- name: Create release schedule
env:
ATLASSIAN_USERNAME : ${{ secrets.ATLASSIAN_USERNAME }}
ATLASSIAN_PASSWORD : ${{ secrets.ATLASSIAN_PASSWORD }}
INPUT_VERSION: ${{ github.event.inputs.version }}
FREEZE_DATE: ${{ github.event.inputs.freeze_date }}
run: |
inv -e release.create-schedule --version "$INPUT_VERSION" --freeze-date "$FREEZE_DATE"