Skip to content

Commit

Permalink
ci: automatically add Bot API version to PR title
Browse files Browse the repository at this point in the history
  • Loading branch information
phaux committed Jul 15, 2024
1 parent 1f713ea commit 652a6f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/codegen-api-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
- run: deno task codegen
- id: get-metadata
run: deno eval 'console.log("version=" + (await import("./TgApi.ts")).TG_API_VERSION)' >> $GITHUB_OUTPUT
- uses: actions/create-github-app-token@v1
id: create-token
with:
Expand All @@ -26,5 +28,4 @@ jobs:
token: ${{ steps.create-token.outputs.token }}
branch: "update-api-types"
commit-message: "chore: generate latest Bot API types"
# TODO: Automatically insert Bot API version
title: "feat: update Bot API types"
title: "feat: update Bot API types to ${{ steps.get-metadata.outputs.version }}"

0 comments on commit 652a6f2

Please sign in to comment.