-
Notifications
You must be signed in to change notification settings - Fork 64
43 lines (37 loc) · 1.12 KB
/
python-api-export-tasks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Export tasks
on:
push:
# branches:
# - main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8"]
steps:
- run: |
sudo apt-get update
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# run export_tasks.py and store output
- id: export_tasks
run: |
{
echo 'payload<<XXX_MULTI_LINE_MARKER_XXX'
python scripts/export_tasks.py
echo 'XXX_MULTI_LINE_MARKER_XXX'
} >> $GITHUB_OUTPUT
- name: Debug
run: echo "${{ steps.export_tasks.outputs.payload }}"
# Dispatch to huggingface/huggingface.js repo
- name: Dispatch to huggingface/huggingface.js
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.REPO_DISPATCH_TOKEN }}
repository: huggingface/huggingface.js
event-type: export-tasks
client-payload: ${{ steps.export_tasks.outputs.payload }}