Skip to content

Commit 4a315e9

Browse files
authored
Add new workflow dispatch to force update all data (pyOpenSci#252)
* Add new workflow dispatch to force update all data * Update .github/workflows/update-all-review-data.yml
1 parent 75a7c58 commit 4a315e9

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: ALL Contribs & Reviewers Update
2+
# Update all contributor and review data from Github api and issues (the other workflow just adds any new missing data but won't repopulate things like date accepted, or user data that may have changed in people's profiles.
3+
on:
4+
workflow_dispatch:
5+
jobs:
6+
run-meta:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Check out the code
10+
uses: actions/checkout@v3
11+
- name: Setup Python
12+
uses: actions/setup-python@v4
13+
with:
14+
python-version: "3.10"
15+
- name: Upgrade pip
16+
run: |
17+
# install pip=>20.1 to use "pip cache dir"
18+
python -m pip install --upgrade pip wheel
19+
- name: Install pyosmeta and run update contribs
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
run: |
23+
pip install pyosmeta@git+https://github.com/pyopensci/update-web-metadata
24+
update-contributors --update update_all
25+
update-reviews --update update_all
26+
update-reviewers
27+
- name: Create Pull Request
28+
uses: peter-evans/create-pull-request@v5
29+
with:
30+
add-paths: |
31+
_data/contributors.yml
32+
_data/packages.yml
33+
author: Leah <[email protected]>
34+
base: main
35+
branch: contribs
36+
commit-message: "Update: Contributor & review file update"
37+
delete-branch: true
38+
title: Update contributor and review data
39+
env:
40+
# Custom token needed to trigger PR checks, as GITHUB_TOKEN won't
41+
# https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
42+
GITHUB_TOKEN: ${{ secrets.PYOS_PR_TOKEN }}

0 commit comments

Comments
 (0)