Skip to content

Commit

Permalink
improve docs
Browse files Browse the repository at this point in the history
Signed-off-by: Mehdi Nassim KHODJA <[email protected]>
  • Loading branch information
naskio committed Jun 10, 2024
1 parent dc8961b commit f1f3485
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/check_file_size.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
####################################
# This workflow will check the file size does not exceed 10MB
# secrets:
# - GITHUB_TOKEN: GitHub API token with some extra permissions
# (octokit.rest.issues.[addLabels|listLabelsOnIssue|removeLabel|getLabel|createLabel|createComment],
# octokit.rest.pulls.listFiles, octokit.rest.git.getBlob, core.setFailed: set PR status to failed)
####################################

name: Check file size

on:
Expand All @@ -19,4 +27,4 @@ jobs:
uses: ppremk/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }} # required with some permissions
filesizelimit: 10MB # this is 10MB so we can sync to HF Spaces
filesizelimit: 10MB # < 10MB so we can sync to HF Spaces
5 changes: 3 additions & 2 deletions .github/workflows/sync_to_hf.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
##### Sync to Hugging Face Hub #####
####################################
# This workflow will sync the repository to Hugging Face Space
# secrets:
# - HF_TOKEN: Hugging Face API token
####################################
Expand Down Expand Up @@ -41,7 +42,7 @@ jobs:
git add requirements.txt packages.txt
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git commit -m "auto-setup HF Space (Gradio): requirements.txt, packages.txt"
git commit -m "auto-setup HF Gradio Space: requirements.txt, packages.txt"
- name: Push to Hugging Face
env:
Expand Down

0 comments on commit f1f3485

Please sign in to comment.