google-drive-upload-git-action icon indicating copy to clipboard operation
google-drive-upload-git-action copied to clipboard

V0.3 cannot upload file - Error 404 returned

Open lpdx opened this issue 2 years ago • 4 comments

My action script

name: On Push Run

on: push

jobs:
  install_conda:
    runs-on: ubuntu-latest
    steps:
      - name: Upload to gdrive
        uses: adityak74/google-drive-upload-git-action@main
        with:
          credentials: ${{ secrets.GDRIVE_CREDENTIALS }}
          filename: "file.pdf"
          folderId: ${{ secrets.GDRIVE_FOLDER_ID }}
          overwrite: "true" # optional boolean

And I'm getting this message 2022/12/07 20:34:53 Unable to retrieve files: googleapi: Error 404: File not found: ., notFound.

Other info

  • The file exists in the root folder;
  • The GDRIVE_FOLDER_ID is acessible since I use it in another Python project;
  • The service account is cofigured as owner.

lpdx avatar Dec 07 '22 20:12 lpdx

I am facing simillar issue. Did you fix it?

sushmoyr avatar Mar 06 '23 09:03 sushmoyr

Unfortunately not yet.

lpdx avatar Mar 06 '23 09:03 lpdx

Did you fix it?

ahmed-ashraf avatar Aug 07 '23 17:08 ahmed-ashraf

Did you fix it?

I used another solution without the action script to upload the file. Since my project is in Python, I used this starkoverflow answer as starting point https://stackoverflow.com/a/55876179

I'm keeping this issue open because it would be better to my project use the action script.

lpdx avatar Aug 07 '23 17:08 lpdx