Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use github app for CI #13

Merged
merged 1 commit into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/codegen-api-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Generate API types
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 1"
- cron: "0 0 * * 0"

permissions:
contents: write
Expand All @@ -15,12 +15,16 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- run: deno task codegen
- uses: actions/create-github-app-token@v1
id: create-token
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.PAT }}
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"
9 changes: 7 additions & 2 deletions .github/workflows/deno-task-cdnup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Update CDN dependencies
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0"
- cron: "0 0 1 * *"

permissions:
contents: write
Expand All @@ -18,9 +18,14 @@ jobs:
- run: deno task cdnup
- run: deno test --no-run # update lock file
continue-on-error: true
- uses: actions/create-github-app-token@v1
id: create-token
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.PAT }}
token: ${{ steps.create-token.outputs.token }}
branch: "update-cdn-deps"
commit-message: "chore: update CDN dependencies"
title: "chore: update CDN dependencies"
7 changes: 6 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: create-token
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- uses: google-github-actions/release-please-action@v4
with:
token: ${{ secrets.PAT }}
token: ${{ steps.create-token.outputs.token }}
release-type: simple