Automatic Offset Generation #537
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: Automatic Offset Generation | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
updateOffsets: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "~1.22.2" | |
check-latest: true | |
cache-dependency-path: "**/go.sum" | |
- name: Update offsets | |
run: make offsets | |
- name: Create pull request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
commit-message: Update generated offsets | |
branch: automated/generated-offsets | |
delete-branch: true | |
title: '[auto] Update generated offsets' | |
body: 'This is an automated PR to update the generated Go field offsets.' |