update maintainer data cronjob #63
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 maintainer data cronjob | |
on: | |
repository_dispatch: | |
workflow_dispatch: | |
schedule: | |
- cron: "00 20 1 * *" | |
jobs: | |
updateProjectData: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
cache: 'pip' # caching pip dependencies | |
- run: pip install -r ./project/requirements.txt | |
- run: | | |
./project/bin/get_maintainer_data | |
env: | |
GITHUB_TOKEN: ${{secrets.BOT_GITHUB_TOKEN}} | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
title: Update maintainer data | |
signoff: true | |
token: ${{secrets.BOT_GITHUB_TOKEN}} |