Skip to content

Commit

Permalink
Fix docker-run pipeline (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
jckleiner authored Dec 23, 2023
1 parent f90e3b5 commit 1dfb34e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/docker-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ jobs:
# pass or create environment variables
environment: |
NOTION_SPACE_ID=${{ secrets.NOTION_SPACE_ID }}
NOTION_EMAIL=${{ secrets.NOTION_EMAIL }}
NOTION_PASSWORD=${{ secrets.NOTION_PASSWORD }}
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 }}
Expand Down
12 changes: 8 additions & 4 deletions src/main/java/com/greydev/notionbackup/NotionBackup.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,28 +73,32 @@ public static void main(String[] args) {
CompletableFuture<Void> futureGoogleDrive = CompletableFuture
.runAsync(() -> NotionBackup.startGoogleDriveBackup(exportedFile))
.handle((result, ex) -> {
if (ex != null) hasErrorOccurred.set(true);
if (ex != null) { hasErrorOccurred.set(true); }
log.error("Exception while GoogleDrive upload", ex);
return null;
});

CompletableFuture<Void> futureDropbox = CompletableFuture
.runAsync(() -> NotionBackup.startDropboxBackup(exportedFile))
.handle((result, ex) -> {
if (ex != null) hasErrorOccurred.set(true);
if (ex != null) { hasErrorOccurred.set(true); }
log.error("Exception while Dropbox upload", ex);
return null;
});

CompletableFuture<Void> futureNextcloud = CompletableFuture
.runAsync(() -> NotionBackup.startNextcloudBackup(exportedFile))
.handle((result, ex) -> {
if (ex != null) hasErrorOccurred.set(true);
if (ex != null) { hasErrorOccurred.set(true); }
log.error("Exception while Nextcloud upload", ex);
return null;
});

CompletableFuture<Void> futurePCloud = CompletableFuture
.runAsync(() -> NotionBackup.startPCloudBackup(exportedFile))
.handle((result, ex) -> {
if (ex != null) hasErrorOccurred.set(true);
if (ex != null) { hasErrorOccurred.set(true); }
log.error("Exception while Pcloud upload", ex);
return null;
});

Expand Down

0 comments on commit 1dfb34e

Please sign in to comment.