jodebu / upload-to-drive Goto Github PK
View Code? Open in Web Editor NEWGithub action to upload a file or a folder to Google Drive
Github action to upload a file or a folder to Google Drive
SyntaxError: Unexpected token � in JSON at position 0
at JSON.parse (<anonymous>)
at Object.<anonymous> (/home/runner/work/_actions/Jodebu/upload-to-drive/master/dist/index.js:1:412513)
at __webpack_require__ (/home/runner/work/_actions/Jodebu/upload-to-drive/master/dist/index.js:1:169)
I am getting this error, even tho I am using a Base64 encoded json in the same format as you are
maybe create something like this
name: Store public in Drive
on:
push: { branches: [master] }
jobs:
buildAndTestForSomePlatforms:
name: Upload public to drive
runs-on: ubuntu-latest
steps:
# Checkout
- name: Checkout repository
uses: actions/checkout@v2
# Upload to Drive
- name: Upload public folder to Google Drive
uses: Jodebu/upload-to-drive@master
id: driveUpload
with:
target: public
notInclude: docs
credentials: secrets.<YOUR_DRIVE_CREDENTIALS>
folder: <YOUR_DRIVE_FOLDER_ID>
So I would really appreciate to have a paramter which will not include a specifc folder of file
Can you please fix this warning?
Warning: The
set-output command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
I have a job in the workflow that runs on a windows machine. In this job I build a wpf windows application.
I would like to add a step in that job that deploys the build artifacts to Google Drive.
Unfortunately, this provided GitHub Action does not work in a windows based job.
Can we have this Github Action to work also in a windows based job?
Thanks for this action, I tried several that does this same thing, and this is my favorite.
I tested the existing output link, it points to the folder which the file is uploaded to, not the uploaded file itself.
That's not a problem, but it would be very useful to get a link to the uploaded file as well.
Would it be possible to get that as another output?
Please allow * in filenames because i have dynamic filenames
Regards Frank
Hi there,
I run a workflow with this action every morning to backup a database. After a year and a half of running, suddenly the action stopped working. The error I get is:
Uploading file to Goole Drive...
Error: Upload failed
Along with the code inside /dist/index.js
. I cannot trace what really the problem is. I already refreshed the key of the service account (which was not expired in the first place), but to no avail. Is there some way I can get to know what the real issue is here?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.