Skip to content
play

GitHub Action

Google Drive Upload Action

v0.1.3-alpha Latest version

Google Drive Upload Action

play

Google Drive Upload Action

Uploads file to Google Drive

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Google Drive Upload Action

uses: AnshPrakash/google-drive-upload-action@v0.1.3-alpha

Learn more about this action in AnshPrakash/google-drive-upload-action

Choose a version

Google Drive file upload docker action

This action uploads a file to Google Drive

Inputs

client_id

Required Client_id of the Google App.

client_secret

Required Client_secret of the Google App.

refresh_token

Required refresh token acquired for a particular user on whose drive you want to upload.

file-to-upload

Required Name of the file to upload.

upload-folder

Required Drive folder name where file is to be uploaded.

Outputs

file_id

File_id of the uploaded file on Google drive.

Example usage

uses: AnshPrakash/google-drive-upload-action@v0.1.3-alpha
with:
    client_id: ${{ secrets.CLIENT_ID }}
    client_secret: ${{ secrets.CLIENT_SECRET }}
    refresh_token: ${{ secrets.REFRESH_TOKEN }}
    file-to-upload: 'file.txt'
    upload-folder: 'some-folder-on-google-drive'