-
Notifications
You must be signed in to change notification settings - Fork 103
50 lines (41 loc) · 1.58 KB
/
update_version.yml
File metadata and controls
50 lines (41 loc) · 1.58 KB
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
name: Update Version on Docker Files
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
POSTGRES_VERSION: ${{ github.event.inputs.postgres_version }}
permissions:
contents: write
on:
workflow_dispatch:
inputs:
project_version:
description: "Version number to be released e.g 10.0.3"
microsoft_email:
description: "Email to be written on changelogs"
default: "ihalatci@microsoft.com"
name:
description: "Name to be written on changelogs"
default: "Ibrahim Halatci"
jobs:
update_docker_files:
name: "Update docker files"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install package 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.34 --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: export PYTHONPATH="$(pwd)/tools" && python -m pip install -r tools/packaging_automation/requirements.txt
- name: Update docker files
run: |
python -m tools.packaging_automation.update_docker \
--prj_ver ${{ github.event.inputs.project_version }} \
--gh_token "${GH_TOKEN}" \
--pipeline \
--exec_path "$(pwd)"