Skip to content

Commit 662fa5a

Browse files
authored
Merge pull request #1 from satackey/custom-api-key
Custom API key & Dockerhub
2 parents 7ef7ae7 + 63d888b commit 662fa5a

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ inputs:
3434

3535

3636
runs:
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 }}

entrypoint.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@
22

33
set -eu
44

5-
# skicka init
5+
if [ ! -e ~/.skicka.config ]; then
6+
skicka init
7+
fi
8+
69
echo $SKICKA_TOKENCACHE_JSON > $HOME/.skicka.tokencache.json
710

811
if [ -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
1114
fi
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
1619
if [ $REMOVE_OUTDATED == "true" ]; then

0 commit comments

Comments
 (0)