summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2024-03-15 18:44:46 +0100
committerGitHub <noreply@github.com>2024-03-15 18:44:46 +0100
commitdadd2191b244c9f4ae411899d59fcf4edd6f5396 (patch)
treee5b86e19ba49d5d13f61d9ec1fa4cb8187a9640a /.github/workflows
parent9c40be5e6ce8069621e08015800ebf59dface868 (diff)
parent0e274feaab32b8e79760d4f9137d4b5a065a0c57 (diff)
downloadvyos-infrastructure-dadd2191b244c9f4ae411899d59fcf4edd6f5396.tar.gz
vyos-infrastructure-dadd2191b244c9f4ae411899d59fcf4edd6f5396.zip
Merge pull request #1 from rebortg/main
add phabricator autoclose script and github action
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/phabricator_tasks.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/phabricator_tasks.yml b/.github/workflows/phabricator_tasks.yml
new file mode 100644
index 0000000..678ce65
--- /dev/null
+++ b/.github/workflows/phabricator_tasks.yml
@@ -0,0 +1,24 @@
+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 }} \ No newline at end of file