Spaces:
Build error
Build error
Update to pass secrets as input
Browse files
.github/workflows/pipeline.yml
CHANGED
@@ -14,6 +14,12 @@ jobs:
|
|
14 |
test-build-python-package:
|
15 |
uses: ./.github/workflows/python-tests.yml
|
16 |
sync-to-deployment-fork:
|
|
|
17 |
uses: ./.github/workflows/sync-to-deployment-fork.yml
|
|
|
|
|
18 |
sync-to-hugging-face-hub-spaces:
|
19 |
-
|
|
|
|
|
|
|
|
14 |
test-build-python-package:
|
15 |
uses: ./.github/workflows/python-tests.yml
|
16 |
sync-to-deployment-fork:
|
17 |
+
needs: [test-build-node-js-app, test-build-python-package]
|
18 |
uses: ./.github/workflows/sync-to-deployment-fork.yml
|
19 |
+
secrets:
|
20 |
+
PAT: ${{ secrets.PAT }}
|
21 |
sync-to-hugging-face-hub-spaces:
|
22 |
+
needs: [test-build-node-js-app, test-build-python-package]
|
23 |
+
uses: ./.github/workflows/sync-to-hugging-face-hub.yml
|
24 |
+
secrets:
|
25 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
.github/workflows/sync-to-deployment-fork.yml
CHANGED
@@ -8,6 +8,10 @@ on:
|
|
8 |
workflow_dispatch:
|
9 |
# to run this workflow from another workflow
|
10 |
workflow_call:
|
|
|
|
|
|
|
|
|
11 |
|
12 |
jobs:
|
13 |
sync-deployment-fork:
|
|
|
8 |
workflow_dispatch:
|
9 |
# to run this workflow from another workflow
|
10 |
workflow_call:
|
11 |
+
inputs:
|
12 |
+
secrets:
|
13 |
+
PAT:
|
14 |
+
required: true
|
15 |
|
16 |
jobs:
|
17 |
sync-deployment-fork:
|
.github/workflows/sync-to-hugging-face-hub.yml
CHANGED
@@ -6,6 +6,10 @@ on:
|
|
6 |
workflow_dispatch:
|
7 |
# to run this workflow from another workflow
|
8 |
workflow_call:
|
|
|
|
|
|
|
|
|
9 |
|
10 |
jobs:
|
11 |
sync-to-hub:
|
|
|
6 |
workflow_dispatch:
|
7 |
# to run this workflow from another workflow
|
8 |
workflow_call:
|
9 |
+
inputs:
|
10 |
+
secrets:
|
11 |
+
HF_TOKEN:
|
12 |
+
required: true
|
13 |
|
14 |
jobs:
|
15 |
sync-to-hub:
|