-
Notifications
You must be signed in to change notification settings - Fork 38
46 lines (35 loc) · 1.8 KB
/
docker-run.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Start Notion backup (using docker)
on:
# adds a "run workflow" button to the page
workflow_dispatch:
# See https://github.com/marketplace/actions/docker-run-step
# See https://github.com/addnab/docker-run-action
jobs:
run-docker-image:
runs-on: ubuntu-latest
steps:
- uses: kohlerdominik/docker-run-action@v1
with:
# public, private or local image
image: ghcr.io/jckleiner/notion-backup
# pass or create environment variables
environment: |
NOTION_SPACE_ID=${{ secrets.NOTION_SPACE_ID }}
NOTION_TOKEN_V2=${{ secrets.NOTION_TOKEN_V2 }}
GOOGLE_DRIVE_ROOT_FOLDER_ID=${{ secrets.GOOGLE_DRIVE_ROOT_FOLDER_ID }}
GOOGLE_DRIVE_SERVICE_ACCOUNT=${{ secrets.GOOGLE_DRIVE_SERVICE_ACCOUNT }}
GOOGLE_DRIVE_SERVICE_ACCOUNT_SECRET_JSON=${{ secrets.GOOGLE_DRIVE_SERVICE_ACCOUNT_SECRET_JSON }}
GOOGLE_DRIVE_SERVICE_ACCOUNT_SECRET_FILE_PATH=${{ secrets.GOOGLE_DRIVE_SERVICE_ACCOUNT_SECRET_FILE_PATH }}
DROPBOX_ACCESS_TOKEN=${{ secrets.DROPBOX_ACCESS_TOKEN }}
DROPBOX_APP_KEY=${{ secrets.DROPBOX_APP_KEY }}
DROPBOX_APP_SECRET=${{ secrets.DROPBOX_APP_SECRET }}
DROPBOX_REFRESH_TOKEN=${{ secrets.DROPBOX_REFRESH_TOKEN }}
NEXTCLOUD_EMAIL=${{ secrets.NEXTCLOUD_EMAIL }}
NEXTCLOUD_PASSWORD=${{ secrets.NEXTCLOUD_PASSWORD }}
NEXTCLOUD_WEBDAV_URL=${{ secrets.NEXTCLOUD_WEBDAV_URL }}
PCLOUD_ACCESS_TOKEN=${{ secrets.PCLOUD_ACCESS_TOKEN }}
PCLOUD_API_HOST=${{ secrets.PCLOUD_API_HOST }}
PCLOUD_FOLDER_ID=${{ secrets.PCLOUD_FOLDER_ID }}
# run is required: "Error: Input required and not supplied: run"
run: |
uname -a