Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sparse checkout with patterns suddenly stopped working #34

Open
karimbahgat opened this issue Jan 11, 2023 · 0 comments
Open

Sparse checkout with patterns suddenly stopped working #34

karimbahgat opened this issue Jan 11, 2023 · 0 comments

Comments

@karimbahgat
Copy link

Hi, I have a Github Action that previously successfully (last run was April 2022) used this action as follows:

jobs:
  # This workflow contains a single job named "build"
  build:
    # The type of runner that the job will run on
    runs-on: ubuntu-latest
    # Steps represent a sequence of tasks that will be executed as part of the job
    # Each step runs a single command using the runners shell
    steps:
    - name: Sparse checkout action
      uses: snow-actions/[email protected]
      with: 
        patterns: |
          buildData
          releaseData
          topojson_simple
          !*.zip

With no changes on my side when I tried running it now, it suddenly resulted in the following error during "Setting up sparse action":

fatal: specify directories rather than patterns.  If your directory starts with a '!', pass --skip-checks

I understand that this likely has to do with my use of patterns and that this action likely uses cone mode which doesn't allow patterns, but I don't understand how that can be since the very same setup has worked previously, and it's even pinned to the v1.1.0 release. My code is even following the readme example exactly. I've tried to update to v1.2.0, and fixing the ubuntu version to the previous one 20.04, but still same error.

Any thoughts on what's happened? Or suggestions for fixes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant