title: How to increase the file limit of GitHub Actions?
body: <p>I have the follwing error:</p>
  
  <p><code>Error: ENOSPC: System limit for number of file watchers reached, watch '/home/  runner/work...</code></p>
  
  <p>I tried all ways to increase the limit (like ulimit -S -n unlimited, sysctl, etc) but seems to not work, neither with sudo</p>
  
  <p>screnshot <a href="https://i.stack.imgur.com/EiH7d.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EiH7d.png" alt="enter image description here"></a></p>
  
  <p>My website has a lot of markdown files (~ 80k) used by gatsby to build the final .htmls.</p>
  
  <p>On my machine I need to increase the file limit, of couse, then works. But in the github actions I can't figure out a way to do this.</p>
  
  <p>My github action <code>workflow.yml</code></p>
  
  <pre><code>    name: Build
  
      on: [push, repository_dispatch]
  
      jobs:
      update:
          runs-on: ubuntu-latest
          steps:
          - uses: actions/checkout@v1
  
          - name: Increase file limit
              run: sudo sysctl -w fs.file-max=65536
  
          - name: Debug
              run: ulimit -a
  
          - name: Set Node.js
              uses: actions/setup-node@master
              with:
              node-version: 12.x
  
          - name: Install dependencies
              run: npm install
  
          - name: Build
              run: npm run build
  </code></pre>
  
  <p>I think this could be related to this issue: <a href="https://github.com/gatsbyjs/gatsby/issues/17321" rel="nofollow noreferrer">https://github.com/gatsbyjs/gatsby/issues/17321</a></p>