Spaces:
Runtime error
Runtime error
ehcalabres
commited on
Update main.yml
Browse filesCheck for large files step added in the workflow before pushing to HF hub
.github/workflows/main.yml
CHANGED
@@ -1,25 +1,24 @@
|
|
1 |
-
# This is a basic workflow to help you get started with Actions
|
2 |
-
|
3 |
name: Sync to Hugging Face hub
|
4 |
|
5 |
-
# Controls when the workflow will run
|
6 |
on:
|
7 |
-
# Triggers the workflow on push or pull request events but only for the main branch
|
8 |
push:
|
9 |
branches: [ main ]
|
10 |
|
11 |
-
# Allows you to run this workflow manually from the Actions tab
|
12 |
workflow_dispatch:
|
13 |
|
14 |
-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
15 |
jobs:
|
16 |
-
# This workflow contains a single job called "build"
|
17 |
sync-to-hub:
|
18 |
runs-on: ubuntu-latest
|
19 |
steps:
|
|
|
|
|
|
|
|
|
|
|
20 |
- uses: actions/checkout@v2
|
21 |
with:
|
22 |
fetch-depth: 0
|
|
|
23 |
- name: Push to hub
|
24 |
env:
|
25 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
|
|
|
|
|
|
1 |
name: Sync to Hugging Face hub
|
2 |
|
|
|
3 |
on:
|
|
|
4 |
push:
|
5 |
branches: [ main ]
|
6 |
|
|
|
7 |
workflow_dispatch:
|
8 |
|
|
|
9 |
jobs:
|
|
|
10 |
sync-to-hub:
|
11 |
runs-on: ubuntu-latest
|
12 |
steps:
|
13 |
+
- name: Check large files
|
14 |
+
uses: ActionsDesk/[email protected]
|
15 |
+
with:
|
16 |
+
filesizelimit: 10485760
|
17 |
+
|
18 |
- uses: actions/checkout@v2
|
19 |
with:
|
20 |
fetch-depth: 0
|
21 |
+
|
22 |
- name: Push to hub
|
23 |
env:
|
24 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|