-
Notifications
You must be signed in to change notification settings - Fork 9
64 lines (59 loc) · 1.93 KB
/
pkg_create_pr.yaml
File metadata and controls
64 lines (59 loc) · 1.93 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Pkg Create PR for vllm-rbln
on:
workflow_call:
inputs:
python-version:
description: "Python version to use"
required: true
type: string
optimum-version:
description: "Optimum version to update"
required: true
type: string
jobs:
create-pr:
runs-on: rbln-sw-k8s-general
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Update Optimum Version in uv
id: uv-update-optimum-rbln
run: |
VERSION="${{ inputs.optimum-version }}"
VERSION="${VERSION#v}"
for i in {1..6}; do
uv add "optimum-rbln>=${VERSION}" --no-cache && exit 0
sleep 10
done
echo "All retries with --cache-dir failed."
exit 1
- name: Create PR for updated files
id: create-pr-step
if: ${{ steps.uv-update-optimum-rbln.outcome == 'success' }}
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GIT_PAT }}
add-paths: |
pyproject.toml
commit-message: "Update optimum-rbln to ${{ inputs.optimum-version }}"
title: "Auto-update optimum-rbln to ${{ inputs.optimum-version }}"
body: "Updated optimum-rbln to ${{ inputs.optimum-version }}."
branch: auto-update-optimum-rbln-${{ inputs.optimum-version }}
base: dev
reviewers: |
rebel-jonghewk
rebel-eunji
rebel-seinpark
rebel-sunwook
outputs:
success: ${{ steps.create-pr-step.outputs.pull-request-operation != 'none' }}