mirror of
https://github.com/logos-storage/logos-storage-pm.git
synced 2026-01-25 00:33:12 +00:00
add workflow to download labels that had their label deleted
This commit is contained in:
parent
05f70203ae
commit
6929185bf9
35
.github/workflows/restore_labels.yml
vendored
Normal file
35
.github/workflows/restore_labels.yml
vendored
Normal file
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user