Autoclose Finished Phabricator Tasks #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Autoclose Finished Phabricator Tasks | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 6 * * *' | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set Up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11.x | |
- uses: actions/checkout@v4 | |
- name: run script | |
env: | |
PHABRICATOR_WRITE_TOKEN: ${{ secrets.PHABRICATOR_WRITE_TOKEN }} | |
if: env.PHABRICATOR_WRITE_TOKEN != null | |
run: | | |
pip3 install -r phabricator_tasks/requirements.txt | |
python3 phabricator_tasks/tasks.py -t ${{ secrets.PHABRICATOR_WRITE_TOKEN }} |