Files
claude-code-viewer/.github/workflows/update-dependencies.yml
d-kimsuon 9532d75989 chore: add GitHub App token generation to dependency update workflow
- Integrated a step to generate a GitHub App token in the update-dependencies.yml workflow.
- Updated the Create Pull Request action to use the generated token for authentication.
2025-10-19 18:40:42 +09:00

64 lines
1.8 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: Update Dependencies
on:
schedule:
# 毎月1日の0時UTCに実行
- cron: '0 0 1 * *'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-update-dependencies
cancel-in-progress: true
jobs:
update:
name: Update Dependencies
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Generate GitHub App token
id: generate_token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
with:
app_id: ${{ vars.BOT_APP_ID }}
private_key: ${{ secrets.BOT_APP_PRIVATE_KEY }}
- name: Setup Node & pnpm
uses: ./.github/actions/setup-node
- name: Update pnpm version
run: pnpm dlx corepack use pnpm@latest
- name: Update dependencies
run: pnpm up --latest
- name: Create Pull Request
uses: peter-evans/create-pull-request@4320041ed380b20e97d388d56a7fb4f9b8c20e79 # v7.0.0
with:
token: ${{ steps.generate_token.outputs.token }}
commit-message: 'chore(deps): update all dependencies'
title: 'chore(deps): update all dependencies'
body: |
## Automated Dependency Update
This PR updates all dependencies to their latest versions.
### Changes
- Updated all dependencies to the latest versions
### Checklist
- [ ] Verify CI passes
- [ ] Test the changes
---
*This PR was automatically generated*
branch: chore/update-dependencies
delete-branch: true
labels: |
dependencies
automated