Skip to content

Commit d74a962

Browse files
committed
ci: add ecodes auto-regeneration workflow
1 parent 7750476 commit d74a962

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Generate Ecodes
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- "scripts/generate-ecodes.lua"
8+
- ".github/workflows/generate-ecodes.yml"
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
15+
jobs:
16+
generate:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v6
22+
23+
- name: Install Lua
24+
uses: leafo/gh-actions-lua@v13
25+
with:
26+
luaVersion: "luajit"
27+
28+
- name: Run code generation script
29+
run: ./scripts/generate-ecodes.lua
30+
31+
- name: Create Pull Request
32+
uses: peter-evans/create-pull-request@v8
33+
with:
34+
commit-message: "chore: auto-regenerate ecodes files"
35+
title: "chore: auto-regenerate ecodes files"
36+
body: "Auto-generated changes by the `generate-ecodes` workflow."
37+
branch: "auto-generate-ecodes"

0 commit comments

Comments
 (0)