Skip to content

Commit 04454d4

Browse files
committed
update check file size and synch to spaces yml
1 parent 8dfa9f9 commit 04454d4

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/check-file-size.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,17 @@ on: # or directly `on: [push]` to run the action on every push on
1010
jobs:
1111
sync-to-hub:
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
pull-requests: write
1316
steps:
17+
- uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
20+
1421
- name: Check large files
1522
uses: ActionsDesk/lfs-warning@v2.0
1623
with:
17-
filesizelimit: 10485760 # this is 10MB so we can sync to HF Spaces
24+
filesizelimit: 10485760 # this is 10MB so we can sync to HF Spaces
25+
token: ${{ secrets.GITHUB_TOKEN }}
26+
repository: ${{ github.repository }}

.github/workflows/sync-to-hugging-face-hub.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
jobs:
1010
sync-to-hub:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
1214
steps:
1315
- uses: actions/checkout@v3
1416
with:

0 commit comments

Comments
 (0)