Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
malinkang committed Nov 21, 2023
1 parent 6e7060d commit b11209b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/weread.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
pip install -r requirements.txt
- name: weread sync
run: |
python weread.py "${{secrets.WEREAD_COOKIE}}" "${{secrets.NOTION_TOKEN}}" "${{secrets.NOTION_DATABASE_ID}}"
python weread.py "${{secrets.WEREAD_COOKIE}}" "${{secrets.NOTION_TOKEN}}" "${{secrets.NOTION_DATABASE_ID}}" "${{ github.ref }}" "${{ github.repository }}"
5 changes: 5 additions & 0 deletions weread.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,10 +391,15 @@ def calculate_book_str_id(book_id):
parser.add_argument("weread_cookie")
parser.add_argument("notion_token")
parser.add_argument("database_id")
parser.add_argument("repository")
parser.add_argument("ref")
options = parser.parse_args()
weread_cookie = options.weread_cookie
database_id = options.database_id
notion_token = options.notion_token
ref = options.ref
repository = options.repository
print(f"ref = $ref, repository = $repository")
session = requests.Session()
session.cookies = parse_cookie_string(weread_cookie)
client = Client(
Expand Down

0 comments on commit b11209b

Please sign in to comment.