add vacuum.yml workflow

This commit is contained in:
jessiebroke 2023-11-29 21:54:22 -05:00
parent 586c405267
commit 84c911879f
No known key found for this signature in database
GPG Key ID: D901DC638A938F8C

38
.github/workflows/vacuum.yml vendored Normal file
View File

@ -0,0 +1,38 @@
name: Vacuum
on:
push:
branches:
- main
jobs:
vacuum:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Run Vacuum script
run: |
python .github/scripts/vacuum.py
env:
GH_PAT: ${{ secrets.GH_PAT }}
working-directory: ${{ github.workspace }}
- name: Upload issue events as artifact
uses: actions/upload-artifact@v2
with:
name: issue-events
path: output/*.json
if-no-files-found: warn