-
Notifications
You must be signed in to change notification settings - Fork 18
48 lines (41 loc) · 1.34 KB
/
generate.yaml
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: Generate API clients
on:
push:
branches:
- main
paths:
- ".openapi/**"
workflow_dispatch:
jobs:
generate:
env:
GOPATH: /home/runner/work/app-services-sdk-go/go
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: 1.16
- name: Checkout
uses: actions/checkout@v4
- name: Generate API clients
run: |
./scripts/generate.sh
go mod tidy
- uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7
with:
title: "chore(all): re-generate OpenAPI client(s)"
token: "${{ secrets.CI_USER_TOKEN }}"
commit-message: "chore(all): re-generate OpenAPI client(s)"
author: "app-services-ci <[email protected]>"
branch: chore/generate-api-clients
branch-suffix: timestamp
reviewers: '@redhat-developer/app-services-sdk-maintainers'
delete-branch: true
body: |
_This pull request was auto-generated_
This PR adds the latest generated API clients.
**Actions**:
1. Review changes and validate against the examples.
2. Make changes where necessary.
3. Approve and merge.
4. Create a release.