-
Notifications
You must be signed in to change notification settings - Fork 12
51 lines (45 loc) · 1.21 KB
/
generate.yml
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
name: Update schema and regenerate codes
on:
workflow_dispatch:
inputs:
branch:
description: 'branch name'
default: 'version/2.0'
required: true
jobs:
build:
permissions:
contents: write
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 1
steps:
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
- name: Checkout
uses: actions/checkout@v3
with:
ref: "${{ github.event.inputs.branch }}"
fetch-depth: 1
submodules: recursive
- name: Run rebuild script
run: |
which ruby
which gem
which rake
cd ${GITHUB_WORKSPACE}/generator
curl -O https://raw.githubusercontent.com/KhronosGroup/OpenGL-Registry/master/xml/gl.xml
ls -al
rake clean
rake
cd ${GITHUB_WORKSPACE}
- name: Commit new libraries
continue-on-error: true
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}"
git commit -a -m "commit by ${GITHUB_ACTOR} via GitHub Actions"
git push --force-with-lease -u origin "${{ github.event.inputs.branch }}"