Skip to content

Commit 80b6088

Browse files
authored
Fix: update contrib / reviews using new entrypoint workflows
1 parent 6490783 commit 80b6088

File tree

3 files changed

+116
-68
lines changed

3 files changed

+116
-68
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Update Contribs & reviewers
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '*'
7+
workflow_dispatch:
8+
schedule:
9+
# Runs on the first of each month (see https://crontab.guru)
10+
- cron: "* * 1 * *"
11+
jobs:
12+
run-meta:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Check out the code
16+
uses: actions/checkout@v3
17+
- name: Setup Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: "3.10"
21+
- name: Upgrade pip
22+
run: |
23+
# install pip=>20.1 to use "pip cache dir"
24+
python -m pip install --upgrade pip wheel
25+
- name: Install pyosmeta and run update contribs
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
run: |
29+
pip install pyosmeta@git+https://github.com/pyopensci/update-web-metadata
30+
update-contributors
31+
update-reviews
32+
update-reviewers
33+
- name: Create Pull Request
34+
uses: peter-evans/create-pull-request@v5
35+
with:
36+
add-paths: |
37+
_data/contributors.yml
38+
_data/packages.yml
39+
author: Leah <[email protected]>
40+
base: main
41+
branch: contribs
42+
commit-message: "Update: Contributor & review file update"
43+
delete-branch: true
44+
title: Update contributor and review data
45+
env:
46+
# Custom token needed to trigger PR checks, as GITHUB_TOKEN won't
47+
# https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
48+
GITHUB_TOKEN: ${{ secrets.PYOS_PR_TOKEN }}
Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
name: Update Contributors
1+
# name: Update Contributors
22

3-
on:
4-
workflow_dispatch:
5-
schedule:
6-
# Runs on the first of each month (see https://crontab.guru)
7-
- cron: "* * 1 * *"
8-
jobs:
9-
run-meta:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: Check out the code
13-
uses: actions/checkout@v3
14-
- name: Run update-web-metadata script
15-
uses: pyOpenSci/update-web-metadata/.github/workflows/run-script.yml@main
16-
with:
17-
script_name_with_args: parse-contributors
18-
- name: Create Pull Request
19-
uses: peter-evans/create-pull-request@v5
20-
with:
21-
add-paths: _data/contributors.yml
22-
author: Leah <[email protected]>
23-
base: main
24-
branch: contribs
25-
commit-message: "Update: Contributor file update"
26-
delete-branch: true
27-
title: Update new contributors
28-
env:
29-
# Custom token needed to trigger PR checks, as GITHUB_TOKEN won't
30-
# https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
31-
GITHUB_TOKEN: ${{ secrets.PYOS_PR_TOKEN }}
3+
# on:
4+
# workflow_dispatch:
5+
# schedule:
6+
# # Runs on the first of each month (see https://crontab.guru)
7+
# - cron: "* * 1 * *"
8+
# jobs:
9+
# run-meta:
10+
# runs-on: ubuntu-latest
11+
# steps:
12+
# - name: Check out the code
13+
# uses: actions/checkout@v3
14+
# - name: Run update-web-metadata script
15+
# uses: pyOpenSci/update-web-metadata/.github/workflows/run-script.yml@main
16+
# with:
17+
# script_name_with_args: parse-contributors
18+
# - name: Create Pull Request
19+
# uses: peter-evans/create-pull-request@v5
20+
# with:
21+
# add-paths: _data/contributors.yml
22+
# author: Leah <[email protected]>
23+
# base: main
24+
# branch: contribs
25+
# commit-message: "Update: Contributor file update"
26+
# delete-branch: true
27+
# title: Update new contributors
28+
# env:
29+
# # Custom token needed to trigger PR checks, as GITHUB_TOKEN won't
30+
# # https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
31+
# GITHUB_TOKEN: ${{ secrets.PYOS_PR_TOKEN }}
Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
1-
name: Update Packages
1+
# name: Update Packages
22

3-
on:
4-
workflow_dispatch:
5-
push:
6-
branches:
7-
- 'ci-update-packages-yml'
8-
schedule:
9-
# Runs on the first of each month (see https://crontab.guru)
10-
- cron: "* * 1 * *"
11-
jobs:
12-
get-code:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- name: Check out the code
16-
uses: actions/checkout@v3
17-
run-meta:
18-
needs: get-code
19-
uses: pyOpenSci/update-web-metadata/.github/workflows/run-script.yml@main
20-
with:
21-
script_name_with_args: parse-review-issues
22-
send-pr:
23-
runs-on: ubuntu-latest
24-
needs: run-meta
25-
steps:
26-
- name: Create Pull Request
27-
uses: peter-evans/create-pull-request@v5
28-
with:
29-
add-paths: _data/packages.yml
30-
author: Leah <[email protected]>
31-
base: main
32-
branch: packages-update
33-
commit-message: "Update: Package file update"
34-
delete-branch: true
35-
title: Update new packages
36-
env:
37-
# Custom token needed to trigger PR checks, as GITHUB_TOKEN won't
38-
# https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
39-
GITHUB_TOKEN: ${{ secrets.PYOS_PR_TOKEN }}
3+
# on:
4+
# workflow_dispatch:
5+
# push:
6+
# branches:
7+
# - 'ci-update-packages-yml'
8+
# schedule:
9+
# # Runs on the first of each month (see https://crontab.guru)
10+
# - cron: "* * 1 * *"
11+
# jobs:
12+
# get-code:
13+
# runs-on: ubuntu-latest
14+
# steps:
15+
# - name: Check out the code
16+
# uses: actions/checkout@v3
17+
# run-meta:
18+
# needs: get-code
19+
# uses: pyOpenSci/update-web-metadata/.github/workflows/run-script.yml@main
20+
# with:
21+
# script_name_with_args: parse-review-issues
22+
# send-pr:
23+
# runs-on: ubuntu-latest
24+
# needs: run-meta
25+
# steps:
26+
# - name: Create Pull Request
27+
# uses: peter-evans/create-pull-request@v5
28+
# with:
29+
# add-paths: _data/packages.yml
30+
# author: Leah <[email protected]>
31+
# base: main
32+
# branch: packages-update
33+
# commit-message: "Update: Package file update"
34+
# delete-branch: true
35+
# title: Update new packages
36+
# env:
37+
# # Custom token needed to trigger PR checks, as GITHUB_TOKEN won't
38+
# # https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
39+
# GITHUB_TOKEN: ${{ secrets.PYOS_PR_TOKEN }}

0 commit comments

Comments
 (0)