Skip to content

Commit 7660868

Browse files
committed
ci: download latest event-codes header weekly and pass to script
1 parent c2d189b commit 7660868

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎.github/workflows/generate-ecodes.yml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
paths:
77
- "scripts/generate-ecodes.lua"
88
- ".github/workflows/generate-ecodes.yml"
9+
# Weekly run every Sunday at 00:00 UTC
10+
schedule:
11+
- cron: "0 0 * * 0"
912
workflow_dispatch:
1013

1114
permissions:
@@ -25,8 +28,11 @@ jobs:
2528
with:
2629
luaVersion: "luajit"
2730

31+
- name: Download latest input-event-codes.h
32+
run: curl -sSfL https://raw.githubusercontent.com/torvalds/linux/master/include/uapi/linux/input-event-codes.h -o input-event-codes.h
33+
2834
- name: Run code generation script
29-
run: ./scripts/generate-ecodes.lua
35+
run: ./scripts/generate-ecodes.lua input-event-codes.h
3036

3137
- name: Create Pull Request
3238
uses: peter-evans/create-pull-request@v8

0 commit comments

Comments
 (0)