Skip to content

Commit

Permalink
CICD: make joplin config more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoCostaIFG committed Dec 5, 2024
1 parent 34fa583 commit bf57d60
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/joplin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,14 @@ jobs:
cache: 'npm'
- name: Login and sync Joplin Wiki notebook
env:
JOPLIN_CONFIG: ${{ secrets.JOPLIN_CONFIG }}
JOPLIN_PATH: ${{ secrets.JOPLIN_PATH }}
JOPLIN_USER: ${{ secrets.JOPLIN_USER }}
JOPLIN_PASSWORD: ${{ secrets.JOPLIN_PASSWORD }}
run: |
echo "$JOPLIN_CONFIG" | npx joplin config --import
npx joplin config sync.target 9
npx joplin config sync.9.path "$JOPLIN_PATH"
npx joplin config sync.9.user "$JOPLIN_USER"
npx joplin config sync.9.password "$JOPLIN_PASSWORD"
npx joplin sync
rm -rf src/
npx joplin export --format md --notebook Wiki src/
Expand Down

0 comments on commit bf57d60

Please sign in to comment.