Skip to content

gen: run automatically #14

gen: run automatically

gen: run automatically #14

Workflow file for this run

name: codegen
on:
push:
branches:
- main
schedule:
- cron: 00 4 * * *
workflow_dispatch:
jobs:
codegen:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Install headers
run: |
set -euxo pipefail
sudo apt -y update
sudo apt -y install libelf-dev libc6-dev libc6-dev-{arm64,armel,riscv64,ppc64el,s390x,mips}-cross
- run: cargo xtask codegen
- run: cargo xtask public-api --bless
- run: echo "LIBBPF_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV
working-directory: xtask/libbpf
- uses: peter-evans/create-pull-request@v7
with:
branch: create-pull-request/codegen
commit-message: |
aya-obj, aya-ebpf-bindings: regenerate
libbpf commit: ${{ env.LIBBPF_SHA }}
title: aya-obj, aya-ebpf-bindings: regenerate

Check failure on line 47 in .github/workflows/gen.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/gen.yml

Invalid workflow file

You have an error in your yaml syntax on line 47
body: |
**Automated changes**
libbpf commit: ${{ env.LIBBPF_SHA }}