-
Notifications
You must be signed in to change notification settings - Fork 491
60 lines (49 loc) · 1.48 KB
/
api-run-makefile-target.yml
File metadata and controls
60 lines (49 loc) · 1.48 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
name: API Run Makefile Target
on:
workflow_dispatch:
inputs:
target:
description: The Makefile target to run (e.g. 'add-known-sdk-version')
required: true
opts:
description: Options to pass (e.g. '--sdk flagsmith-python-sdk --version 1.2.3')
required: false
default: ""
pr-title:
description: The title to use for the PR
required: true
pr-notes:
description: Additional notes to add to the PR body
required: false
default: ""
permissions:
contents: write
pull-requests: write
defaults:
run:
working-directory: api
jobs:
run-makefile-target:
runs-on: depot-ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install Poetry
run: make install-poetry
- uses: actions/setup-python@v5
with:
python-version: 3.13
cache: poetry
- name: Install Dependencies
run: make install-packages
- name: Run `make ${{ inputs.target }} opts=${{ inputs.opts }}`
env:
opts: ${{ inputs.opts }}
run: make ${{ inputs.target }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
branch: chore/make-${{ inputs.target }}-${{ github.run_id }}
title: ${{ inputs.pr-title }}
body: |
Results of `make ${{ inputs.target }} opts="${{ inputs.opts }}"` ran on commit ${{ github.sha }}.
${{ inputs.pr-notes }}