Skip to content

Instantly share code, notes, and snippets.

@YumaInaura
Created September 4, 2024 00:57
Show Gist options
  • Save YumaInaura/534784de084f7d80e0f2fd7bfab325b0 to your computer and use it in GitHub Desktop.
Save YumaInaura/534784de084f7d80e0f2fd7bfab325b0 to your computer and use it in GitHub Desktop.
Unable to upload hidden file , directory ( actions/upload-artifact@v4 )

Trouble

Error

Error: No files were found with the provided path: .up/. No artifacts will be uploaded.

Resolve

jobs:
  setup:
    name: 'Setup'
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: Upload Test
        uses: actions/upload-artifact@v4
        with:
          name: upload-test
          if-no-files-found: error
+         include-hidden-files: true
          path: .up

Ref

https://github.com/actions/upload-artifact/blob/main/docs/MIGRATION.md

https://github.com/actions/upload-artifact?tab=readme-ov-file#v4---whats-new

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment