Skip to content

Generate attestation libraries #446

Generate attestation libraries

Generate attestation libraries #446

Workflow file for this run

name: Generate attestation libraries
on:
push:
branches:
- "main"
schedule:
# There are two reasons we may need to regenerate libraries.
# First, there's an explicit change merged into main. That's caught by the
# other trigger. The second reason is when protoc is updated to a newer
# version (still within the versions specified here, as 3.x may map to 3.20
# instead of 3.19) without any changes to the main branch of this
# repository. For this reason, the second trigger runs this workflow once a
# week.
- cron: '0 14 * * 1'
jobs:
run-make-protos:
runs-on: ubuntu-latest
steps:
- name: Install protoc
uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b
with:
version: '24.x'
- name: Install Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97
with:
python-version: '3.x'
- name: Install Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e
with:
go-version: 1.23.x
- name: setup env
run: |
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- name: Generate libraries
run: |
make protos
- name: Create PR
# This step opens a PR if make protos resulted in a difference from
# what's currently in the main branch. It has no permissions to write to
# the repository, maintainers are required to approve and merge the PRs.
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1
with:
commit-message: Regenerate attestation libraries
title: Regenerate attestation libraries
body: This PR updates the attestation libraries generated using protoc.
base: main
branch: actions-regenerate-attestation-libraries
delete-branch: true
signoff: true
author: GitHub <noreply@github.com>
committer: GitHub <noreply@github.com>