Skip to content

trigger-workflow

trigger-workflow #57

name: update-contributors
on:
repository_dispatch:
workflow_dispatch:
schedule:
- cron: "00 20 1 * *"
jobs:
updateContributors:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
- run: pip install -r requirements.txt
- run: |
./hack/contributors.py
env:
GITHUB_TOKEN: ${{secrets.BOT_GITHUB_TOKEN}}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
title: Update contributors section
signoff: true
token: ${{secrets.BOT_GITHUB_TOKEN}}