Update system calls data #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Syscalls Tables | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 1 * * 2' # Each tuesday | |
# also run on repo changes | |
push: | |
branches: [ "devel" ] | |
pull_request: | |
branches: [ "devel" ] | |
jobs: | |
update-tables: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
# 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: $GITHUB_WORKSPACE/linux | |
repository: torvalds/linux | |
- name: Fetch linux version | |
working-directory: $GITHUB_WORKSPACE/linux/ | |
run: | | |
LINUX_VER=$(make kernelversion) | |
echo "VERSION=$LINUX_VER" >> $GITHUB_ENV | |
- name: Bump syscalls-tables | |
working-directory: syscalls-table/ | |
run: | | |
bash scripts/update-tables.sh KERNELSRC=$GITHUB_WORKSPACE/linux/ | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
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: update syscalls tables.' | |
token: ${{ secrets.GITHUB_TOKEN }} |