Update Package Properties #162
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: Update Package Properties | |
env: | |
PRJ_NAME: "citus" | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
on: | |
workflow_dispatch: | |
inputs: | |
tag_name: | |
description: "The tag name on the project repo to be released" | |
required: true | |
fancy_version_no: | |
description: "If fancy versioning is needed, set value greater than 1 e.g 2" | |
default: "1" | |
required: false | |
microsoft_email: | |
description: "Email to be written on changelogs" | |
default: "[email protected]" | |
required: false | |
name: | |
description: "Name to be written on changelogs" | |
default: "Gurkan Indibay" | |
required: false | |
changelog_entry: | |
description: "If filled, changelog other than default entry will be written" | |
default: "" | |
required: false | |
jobs: | |
update_package_properties: | |
name: Update package properties | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
- name: Install dependencies | |
run: sudo apt-get update && sudo apt install libcurl4-openssl-dev libssl-dev python3-testresources | |
- name: Clone tools branch | |
run: git clone -b v0.8.26 --depth=1 https://github.com/citusdata/tools.git tools | |
- name: Set git name and email | |
run: | | |
git config --global user.email "${{ github.event.inputs.microsoft_email }}" && \ | |
git config --global user.name "${{ github.event.inputs.name }}" | |
- name: Install python requirements | |
run: python -m pip install -r tools/packaging_automation/requirements.txt | |
- name: Update package properties | |
run: | | |
python -m tools.packaging_automation.update_package_properties \ | |
--gh_token="${GH_TOKEN}" \ | |
--prj_name "${PRJ_NAME}" \ | |
--tag_name ${{ github.event.inputs.tag_name }} \ | |
--email ${{ github.event.inputs.microsoft_email }} \ | |
--name "${{ github.event.inputs.name }}" \ | |
--pipeline \ | |
--fancy_ver_no "${{ github.event.inputs.fancy_version_no }}" \ | |
--changelog_entry "${{ github.event.inputs.changelog_entry }}" \ | |
--exec_path "$(pwd)" |