-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (45 loc) · 1.69 KB
/
Copy pathbuild.yml
File metadata and controls
48 lines (45 loc) · 1.69 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
name: osc-sdk-python release build
on:
workflow_dispatch:
inputs:
api_version:
description: 'Outscale API version'
required: true
permissions:
contents: write
pull-requests: write
id-token: write
jobs:
auto-build:
environment: auto-build
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- uses: chainguard-dev/actions/setup-gitsign@3e76343fe029f8e2a10bfbec0da8f437e5dab7a5 # main
- name: Install uv
uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0
- name: Set up Python
run: uv python install
- name: Build release
run: .github/scripts/release-build.sh "$API_VERSION"
env:
API_VERSION: ${{ github.event.inputs.api_version }}
- name: Get SDK version
id: get-sdk-version
run: |
echo "sdk_version=$(cat osc_sdk_python/VERSION)" >> "$GITHUB_OUTPUT"
- name: Create Pull Request
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
committer: "Outscale Bot <opensource+bot@outscale.com>"
author: "Outscale Bot <opensource+bot@outscale.com>"
commit-message: "🔖 release: osc-sdk-python v${{ env.sdk_version }}"
body: |
Automatic build of SDK v${{ env.sdk_version }} version based on Outscale API ${{ env.api_version }}.
title: "SDK v${{ env.sdk_version }}"
token: "${{ env.token }}"
labels: "kind/feature"
env:
sdk_version: ${{ steps.get-sdk-version.outputs.sdk_version }}
api_version: ${{ github.event.inputs.api_version }}
token: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}