-
Notifications
You must be signed in to change notification settings - Fork 169
44 lines (37 loc) · 1.17 KB
/
pr_project_automation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: PR project automation
# ℹ️ https://github.com/WordPress/openverse/blob/main/.github/GITHUB.md#pr-project-automation
on:
schedule:
- cron: "15 15 * * 2" # 3:15pm on Tuesday
env:
LOGGING_LEVEL: 20 # corresponds to INFO
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
clear_done:
name: Clear done PRs
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install dependencies
working-directory: ./automations/python
run: |
python -m pip install --user --upgrade pip
python -m pip install --user pipenv
pipenv install --deploy
- name: Clear PRs in "Merged!"
working-directory: ./automations/python
run: |
pipenv run python archive_column.py \
--project-number 8 \
--column 'Merged!'
- name: Clear PRs in "Closed"
working-directory: ./automations/python
run: |
pipenv run python archive_column.py \
--project-number 8 \
--column "Closed"