Skip to content

Commit 0e274fe

Browse files
committed
create phabricator tasks autoclose github action
1 parent a36a884 commit 0e274fe

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Autoclose Finished Phabricator Tasks
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '0 6 * * *'
6+
7+
jobs:
8+
main:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Set Up Python
12+
uses: actions/setup-python@v5
13+
with:
14+
python-version: 3.11.x
15+
16+
- uses: actions/checkout@v4
17+
18+
- name: run script
19+
env:
20+
PHABRICATOR_WRITE_TOKEN: ${{ secrets.PHABRICATOR_WRITE_TOKEN }}
21+
if: env.PHABRICATOR_WRITE_TOKEN != null
22+
run: |
23+
pip3 install -r phabricator_tasks/requirements.txt
24+
python3 phabricator_tasks/tasks.py -t ${{ secrets.PHABRICATOR_WRITE_TOKEN }}

0 commit comments

Comments
 (0)