-
-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (38 loc) 路 1.01 KB
/
actions.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
44
45
46
47
48
name: Update Bookmarks
on:
push:
branches:
- main
schedule:
# At minute 0 past every hour - https://crontab.guru/#0_*/1_*_*_*
- cron: '0 */1 * * *'
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
sync:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USERNAME: ${{ secrets.GITHUB_USERNAME }}
PINBOARD_TOKEN: ${{ secrets.PINBOARD_TOKEN }}
steps:
- uses: actions/checkout@master
- name: Setup python
uses: actions/setup-python@v3
with:
cache: "pip"
python-version: "3.9"
- name: Install our project requirements
run: |
python -m pip install -r requirements.txt
- name: Remove Duplicate Bookmarks
run: |
python main.py remove_dupes
- name: Fix Bookmark Tags
run: |
python main.py fix_tags
# - name: Fix Titlecase
# run: |
# python main.py fix_titlecase