Improve docs #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#################################### | |
# 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: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: # to run this workflow manually from the Actions tab | |
permissions: # Sets permissions of the GITHUB_TOKEN to allow lfs warning to work properly | |
contents: read | |
pull-requests: write | |
jobs: | |
sync-to-hub: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check large files | |
uses: ppremk/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} # required with some permissions | |
filesizelimit: 10MB # < 10MB so we can sync to HF Spaces |