update contributions #92
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: update contributions | |
on: | |
schedule: | |
# 毎月1日に、20時JST | |
- cron: '0 11 1 * *' | |
workflow_dispatch: | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- uses: actions/create-github-app-token@v1 | |
id: generate-token | |
with: | |
app-id: ${{ secrets.APP_ID }} | |
private-key: ${{ secrets.APP_PRIVATE_KEY }} | |
- name: setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
cache: 'npm' | |
- name: check npm ci | |
run: npm ci | |
- name: update | |
run: npm run update-pr-data | |
- name: create pull request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
token: ${{ steps.generate-token.outputs.token }} | |
commit-message: 'chore: update pr data' | |
delete-branch: true | |
branch-suffix: timestamp | |
title: 'Automatic pr data update' | |
reviewers: sapphi-red |