Skip to content

hoatruongdev09/google-drive-file-upload-github-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub action to upload a file from Google Drive.

For instructions on how to set up service account required to download file, please follow this steps:

  1. Create a project in the Google Cloud Platform Console .
  2. Enable Google Drive API in new project.
  3. Create a service account for new project.
  4. Create authentication keys for the service account and download it as json file.
  5. Share the file that you want to download to the service account in google drive.
  6. Encode your service account json file content to base64 and store in your action secret

Inputs

  • file-path: Path of file that need to be uploaded
  • service-account-json: base64 encoded of service account json file
  • upload-name: Uploaded file name that store on drive
  • upload-to-folder-id: Folder that should contains uploaded file
  • overrwrite: Overwrite existed filed or not

output

  • file-id: File id of uploaded file
  • web-content-link: Link download as web content
  • web-view-link: Link download as web view

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published