Skip to content

Commit 0e81770

Browse files
committed
fix(sync): apt request and token
1 parent 5e4696c commit 0e81770

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/sync.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,10 @@ jobs:
3535
publish_dir: ./dist
3636

3737
- name: Sync
38-
run: curl --fail --silent --show-error "https://updates.travellings.cn/update?token=${{ secrets.SYNC_TOKEN }}"
38+
run: |
39+
curl -X POST \
40+
-H "User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36" \
41+
-H "Cookie: _tlogin=${{ secrets.SYNC_TOKEN }}" \
42+
--fail \
43+
--show-error \
44+
https://api.travellings.cn/syncUpdate/mlist

0 commit comments

Comments
 (0)