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