-
Notifications
You must be signed in to change notification settings - Fork 29
63 lines (54 loc) · 1.67 KB
/
update-tables.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
52
53
54
55
56
57
58
59
60
61
62
63
name: Update system calls data
on:
workflow_dispatch:
schedule:
- cron: '0 1 * * 2' # Each tuesday
# also run on repo changes
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
update-tables:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: install packages data
run: sudo apt-get update
# without x32 headers we get i386 data for x32
- name: install x32 headers
run: sudo apt-get install libc6-dev-x32
- name: Checkout syscalls-table
uses: actions/checkout@v4
with:
path: syscalls-table/
ref: master
- name: Checkout Linux
uses: actions/checkout@v4
with:
path: linux
repository: torvalds/linux
- name: Update system calls data
working-directory: syscalls-table/
run: |
bash scripts/update-tables.sh $GITHUB_WORKSPACE/linux/
- name: Check linux version
working-directory: linux/
run: |
LINUX_VER=$(make kernelversion)
echo "VERSION=$LINUX_VER" >> $GITHUB_ENV
- name: Create pull request
uses: peter-evans/create-pull-request@v6
with:
path: syscalls-table/
signoff: true
base: master
branch: update/tables
title: 'update: update syscalls tables.'
body: |
This autogenerated PR updates the tables of syscalls from kernel ${{ env.VERSION }}. Do not edit this PR.
```
commit-message: 'update syscalls tables for kernel ${{ env.VERSION }}.'
token: ${{ secrets.GITHUB_TOKEN }}