update-contributors #4
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-contributors | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "00 3 1 * *" # 3:00(UTC) on the 1st day of every month | |
jobs: | |
updateContributors: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- run: | | |
make gen/contributions | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # `gh` command requires this token. | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
title: "[bot] Update contributors" | |
commit-message: "[bot] Update contributors" | |
branch: "create-pull-request/update-contributors" | |
body: | | |
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action. | |
The workflow is defined [here](https://github.com/pipe-cd/pipecd/blob/master/.github/workflows/update-contributors.yaml). | |
**Note:** You need to **close and reopen this PR** manually to trigger status check workflows. (Or just click `Update branch` if possible.) | |
For details, see https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs. | |
delete-branch: true | |
signoff: true | |
token: ${{ secrets.GITHUB_TOKEN }} |