File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ inputs:
3434
3535
3636runs :
37- using : ' docker'
38- image : ' Dockerfile '
37+ using : docker
38+ image : docker://satackey/action-google-drive:v1.1.0
3939 env :
4040 SKICKA_TOKENCACHE_JSON : ${{ inputs.skicka-tokencache-json }}
4141 UPLOAD_FROM : ${{ inputs.upload-from }}
Original file line number Diff line number Diff line change 22
33set -eu
44
5- # skicka init
5+ if [ ! -e ~ /.skicka.config ]; then
6+ skicka init
7+ fi
8+
69echo $SKICKA_TOKENCACHE_JSON > $HOME /.skicka.tokencache.json
710
811if [ -n " $GOOGLE_CLIENT_ID " ]; then
912 sed -i -e " s/;clientid=YOUR_GOOGLE_APP_CLIENT_ID/clientid=$GOOGLE_CLIENT_ID /" ~ /.skicka.config
10- sed -i -e " s/;clientsecret=YOUR_GOOGLE_APP_SECRET/clientid =$GOOGLE_CLIENT_SECRET /" ~ /.skicka.config
13+ sed -i -e " s/;clientsecret=YOUR_GOOGLE_APP_SECRET/clientsecret =$GOOGLE_CLIENT_SECRET /" ~ /.skicka.config
1114fi
1215
13- skicka upload -no-browser-auth -ignore-times " $UPLOAD_FROM " " $UPLOAD_TO "
16+ skicka -no-browser-auth upload -ignore-times " $UPLOAD_FROM " " $UPLOAD_TO "
1417
1518# Remove outdated
1619if [ $REMOVE_OUTDATED == " true" ]; then
You can’t perform that action at this time.
0 commit comments