-
Notifications
You must be signed in to change notification settings - Fork 113
Expand file tree
/
Copy pathgenerate-artifacts-from-schemas.yml
More file actions
48 lines (43 loc) · 1.26 KB
/
generate-artifacts-from-schemas.yml
File metadata and controls
48 lines (43 loc) · 1.26 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: Generate Artifacts from schemas
on:
workflow_dispatch:
push:
branches:
- master
paths-ignore:
- '.github/**'
- README.md
jobs:
build-artifacts:
runs-on: ubuntu-24.04
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@master
with:
ref: 'master'
- uses: actions/setup-go@v6
with:
go-version: '1.25.5' # match your local version
- name: Install build dependencies
uses: actions/setup-node@v6
- run: |
npm i
go version
go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@v2.5.1
echo "$HOME/go/bin" >> $GITHUB_PATH # ✅ Add oapi-codegen to PATH
- name: Run Make build
shell: bash
run: |
make build
- name: Pull changes from remote
run: git pull origin master
- uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: Generate build artifacts from schemas
commit_options: '--signoff'
branch: master
commit_user_name: meshery
commit_user_email: ci@meshery.io
commit_author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>