GitHub action to download a file from Google Drive with file id.
File ID's can be specified by either the raw id on Google Drive, or by using the URL obtained from Get URL from the Google Drive dashboard.
For instructions on how to set up service account required to download file, please follow this steps:
- Create a project in the Google Cloud Platform Console .
- Enable Google Drive API in new project.
- Create a service account for new project.
- Create authentication keys for the service account and download it as json file.
- Share the file that you want to download to the service account in google drive.
- Encode your service account json file content to base64 and store in your action secret
- file-id: The raw File ID for the file to download
- service-account-json: base64 encoded of service account json file
- download-to: path of folder for downloaded file
- file-path: download file path