Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: ci build to parse all issues and prs and contribs #41

Merged
merged 3 commits into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/update-pr-data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Update Contribs & reviewers

on:
workflow_dispatch:
schedule:
# Runs on the 1 and 15 of each month at 00:00 UTC (see https://crontab.guru)
- cron: "0 0 1,15 * *"
# Runs at 11pm on December 31st every year
- cron: "0 23 31 12 *"
jobs:
run-meta:
if: github.repository_owner == 'pyopensci'
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Upgrade pip
run: |
# install pip=>20.1 to use "pip cache dir"
python -m pip install --upgrade pip wheel
- name: Install pyosmeta and run update contribs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip install git+https://github.com/your-username/pyosmeta.git
python scripts/get-prs.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
add-paths: |
_data/*.csv
author: Leah <[email protected]>
base: main
branch: contribs
commit-message: "Update: Contributor & review file update"
delete-branch: true
title: Update contributor and review data
env:
# Custom token needed to trigger PR checks, as GITHUB_TOKEN won't
# https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
GITHUB_TOKEN: ${{ secrets.PYOS_PR_TOKEN }}
Loading
Loading