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

Error: No files were found with the provided path #12

Open
bzmillerboy opened this issue Feb 8, 2023 · 0 comments
Open

Error: No files were found with the provided path #12

bzmillerboy opened this issue Feb 8, 2023 · 0 comments

Comments

@bzmillerboy
Copy link

I'm getting the following error when my action run.

Error: No files were found with the provided path: backups/backup.tar.gz. No artifacts will be uploaded.

Version: v0.4

Here is my .yml action code (note: I have a monorepo and 'studio' is the folder where Sanity resides):

name: Sanity Dataset Backup
on:
  schedule:
    # Runs at 06:00pm EST everyday
    - cron: '0 18 * * *'
  workflow_dispatch:
jobs:
  backup-dataset:
    runs-on: ubuntu-latest
    name: Backup dataset
    defaults:
      run:
        working-directory: studio
    steps:
      - uses: actions/checkout@v2
      - name: Export dataset
        uses: sanity-io/github-action-sanity@v0.4
        env:
          SANITY_AUTH_TOKEN: ${{ secrets.SANITY_AUTH_TOKEN }}
        with:
          args: studio dataset export production backups/backup.tar.gz
      - name: Upload backup.tar.gz
        uses: actions/upload-artifact@v2
        with:
          name: backup-tarball
          path: backups/backup.tar.gz
          # Fails the workflow if no files are found; defaults to 'warn'
          if-no-files-found: error

Screenshot 2023-02-08 at 1 52 50 PM

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