Update Package Properties #210
Workflow file for this run
This file contains hidden or 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: "gindibay@microsoft.com" | |
| 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: | |
| - uses: actions/create-github-app-token@v3 | |
| id: app-token | |
| with: | |
| app-id: ${{ vars.GH_APP_ID }} | |
| private-key: ${{ secrets.GH_APP_KEY }} | |
| owner: citusdata | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| token: ${{ steps.app-token.outputs.token }} | |
| - name: Export app token to environment | |
| run: | | |
| echo "GH_TOKEN=${{ steps.app-token.outputs.token }}" >> $GITHUB_ENV | |
| echo "GITHUB_TOKEN=${{ steps.app-token.outputs.token }}" >> $GITHUB_ENV | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libcurl4-openssl-dev libssl-dev python3-testresources | |
| - name: Clone tools branch | |
| run: git clone -b v0.8.36 --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)" |