Skip to content

update-protocols

update-protocols #110

name: update-protocols
on:
workflow_dispatch:
schedule:
- cron: '0 */6 * * *'
env:
CARGO_TERM_COLOR: always
jobs:
update-protocols:
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v2
id: generate-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- uses: actions/checkout@v6
- name: Update protocols
run: |
cargo run -p update-protocols
cargo run -p generator
- name: Create Pull Request
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
with:
token: ${{ steps.generate-token.outputs.token }}
commit-message: Update protocols
title: Update protocols
body: |
Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
branch: bot/update-protocols
base: master
- name: Notify failed build
uses: jayqi/failed-build-issue-action@1a893bbf43ef1c2a8705e2b115cd4f0fe3c5649b # v1.2
if: failure()
with:
github-token: ${{ steps.generate-token.outputs.token }}
label-name: 'auto-update'
title-template: 'Auto Update Failed'