Create release schedule on confluence #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Install python | |
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1 | |
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 }} | |
run: | | |
inv -e release.create-schedule --version ${{ github.event.inputs.version }} --freeze-date ${{ github.event.inputs.freeze_date }} |