-
Notifications
You must be signed in to change notification settings - Fork 169
47 lines (40 loc) · 1.36 KB
/
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
45
46
47
name: Project automation
# ℹ️ https://github.com/WordPress/openverse/blob/main/.github/GITHUB.md#project-automation
on:
workflow_dispatch:
schedule:
- cron: "*/15 * * * *" # every 15 minutes
env:
LOGGING_LEVEL: 20 # corresponds to INFO
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} # Can't search in the private infra repo with GITHUB_TOKEN
jobs:
move_issues:
name: Move issues to "In Progress"
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: Move issues from "To do"
working-directory: ./automations/python
run: |
pipenv run python issues_with_prs.py \
--project-number 3 \
--source-column "To do" \
--target-column "In progress"
- name: Move issues from "Backlog"
working-directory: ./automations/python
run: |
pipenv run python issues_with_prs.py \
--project-number 3 \
--source-column "Backlog" \
--target-column "In progress"