Skip to content

Update schema

Update schema #681

Workflow file for this run

name: Update schema
on:
workflow_dispatch:
schedule:
- cron: '36 7 * * *'
jobs:
update-schema:
runs-on: ubuntu-latest
steps:
- uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Checkout latest code
uses: actions/[email protected]
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Get Go environment
id: go-env
run: |
echo "::set-output name=cache::$(go env GOCACHE)"
echo "::set-output name=modcache::$(go env GOMODCACHE)"
- name: Set up cache
uses: actions/[email protected]
with:
path: |
${{ steps.go-env.outputs.cache }}
${{ steps.go-env.outputs.modcache }}
key: update-schema-${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
update-schema-${{ runner.os }}-go-
- name: Update schema & generate files
run: make generate
- name: Create PR
id: cpr
uses: peter-evans/[email protected]
with:
author: GitHub <[email protected]>
committer: GitHub <[email protected]>
commit-message: 'feat(oas): update BotAPI schema'
branch: feat/update-schema
delete-branch: true
token: ${{ steps.generate-token.outputs.token }}
title: Update Bot API schema to the latest version
body: |
Update Bot API schema to the latest version.
labels: |
dependencies