From 6929185bf932e1e0deb06b4b1cba1e8e914f0b34 Mon Sep 17 00:00:00 2001 From: jessiebroke <18238304+jessiebroke@users.noreply.github.com> Date: Wed, 29 Nov 2023 02:38:10 -0500 Subject: [PATCH] add workflow to download labels that had their label deleted --- .github/workflows/restore_labels.yml | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/restore_labels.yml diff --git a/.github/workflows/restore_labels.yml b/.github/workflows/restore_labels.yml new file mode 100644 index 0000000..45e4705 --- /dev/null +++ b/.github/workflows/restore_labels.yml @@ -0,0 +1,35 @@ +name: Restore Labels + +on: + workflow_dispatch: + +jobs: + restore-labels: + 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: Restore Labels + run: | + python .github/scripts/restore_labels.py + env: + GH_PAT: ${{ secrets.SYNC_LABELS2 }} + working-directory: ${{ github.workspace }} + + - name: Upload issue events as artifact + uses: actions/upload-artifact@v2 + with: + name: issue-events + path: issue_events.json \ No newline at end of file