From 28d4f51775f7c013514f0cca466f1b513087aa3f Mon Sep 17 00:00:00 2001 From: satackey <21271711+satackey@users.noreply.github.com> Date: Mon, 30 Dec 2019 18:14:48 +0900 Subject: [PATCH 1/3] fix --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 2067604..0942500 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,10 +7,10 @@ echo $SKICKA_TOKENCACHE_JSON > $HOME/.skicka.tokencache.json if [ -n "$GOOGLE_CLIENT_ID" ]; then sed -i -e "s/;clientid=YOUR_GOOGLE_APP_CLIENT_ID/clientid=$GOOGLE_CLIENT_ID/" ~/.skicka.config - sed -i -e "s/;clientsecret=YOUR_GOOGLE_APP_SECRET/clientid=$GOOGLE_CLIENT_SECRET/" ~/.skicka.config + sed -i -e "s/;clientsecret=YOUR_GOOGLE_APP_SECRET/clientsecret=$GOOGLE_CLIENT_SECRET/" ~/.skicka.config fi -skicka upload -no-browser-auth -ignore-times "$UPLOAD_FROM" "$UPLOAD_TO" +skicka -no-browser-auth upload -ignore-times "$UPLOAD_FROM" "$UPLOAD_TO" # Remove outdated if [ $REMOVE_OUTDATED == "true" ]; then From b8efdd2a591dd225ffe45a0bbc46b1d16562252e Mon Sep 17 00:00:00 2001 From: satackey <21271711+satackey@users.noreply.github.com> Date: Mon, 30 Dec 2019 18:50:28 +0900 Subject: [PATCH 2/3] =?UTF-8?q?skicka=20init=E3=81=95=E3=82=8C=E3=81=A6?= =?UTF-8?q?=E3=81=84=E3=81=AA=E3=81=91=E3=82=8C=E3=81=B0=E8=A1=8C=E3=81=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entrypoint.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 0942500..0cbbe08 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,7 +2,10 @@ set -eu -# skicka init +if [ ! -e ~/.skicka.config ]; then + skicka init +fi + echo $SKICKA_TOKENCACHE_JSON > $HOME/.skicka.tokencache.json if [ -n "$GOOGLE_CLIENT_ID" ]; then From 63d888bc0007853258bc5d16b2ab0e35afe2db34 Mon Sep 17 00:00:00 2001 From: satackey <21271711+satackey@users.noreply.github.com> Date: Mon, 30 Dec 2019 22:22:45 +0900 Subject: [PATCH 3/3] Use Dockerhub image --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 904d857..ac2f7d4 100644 --- a/action.yml +++ b/action.yml @@ -34,8 +34,8 @@ inputs: runs: - using: 'docker' - image: 'Dockerfile' + using: docker + image: docker://satackey/action-google-drive:v1.1.0 env: SKICKA_TOKENCACHE_JSON: ${{ inputs.skicka-tokencache-json }} UPLOAD_FROM: ${{ inputs.upload-from }}