Skip to content

Commit 4185010

Browse files
committed
Add children to label export, break some stuff
1 parent 38e9faf commit 4185010

File tree

5 files changed

+563
-201
lines changed

5 files changed

+563
-201
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: "/"
5+
schedule:
6+
interval: weekly
7+
open-pull-requests-limit: 10
8+
- package-ecosystem: pip
9+
directory: "/label_export"
10+
schedule:
11+
interval: weekly
12+
open-pull-requests-limit: 10

.github/workflows/label_export.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Export labels
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- '.github/workflows/label_export.yml'
9+
- 'label_export/export_annotations.py'
10+
pull_request:
11+
paths:
12+
- '.github/workflows/label_export.yml'
13+
- 'label_export/export_annotations.py'
14+
15+
jobs:
16+
export_labels:
17+
runs-on: ubuntu-latest
18+
name: Export labels
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
- name: Set up Python
23+
uses: actions/setup-python@v5.1.1
24+
with:
25+
python-version: '3.x'
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install
30+
working-directory: ./label_export
31+
- name: Export labels
32+
run: python ./export_annotations.py
33+
working-directory: ./label_export
34+
- name: Upload labels JSON
35+
uses: actions/upload-artifact@v4.3.4
36+
with:
37+
name: labels
38+
path: ./label_export/annotations.json

0 commit comments

Comments
 (0)