File tree 4 files changed +93
-0
lines changed
4 files changed +93
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "version" : " 0.2" ,
3
+ "language" : " en" ,
4
+ // allowCompoundWords - set to true to allow compound words by default
5
+ "allowCompoundWords" : true ,
6
+ // words - list of words to be always considered correct
7
+ "words" : [" joshi" , " qiita" ],
8
+ // flagWords - list of words to be always considered incorrect
9
+ // "flagWords": [],
10
+ // ignorePaths - a list of globs to specify which files are to be ignored
11
+ "ignorePaths" : [
12
+ " .vscode" ,
13
+ " .devcontainer" ,
14
+ " .git" ,
15
+ " .history" ,
16
+ " .cspell.json" ,
17
+ " node_modules" ,
18
+ " package.json" ,
19
+ " yarn.lock"
20
+ ]
21
+ }
Original file line number Diff line number Diff line change
1
+ name : Qiita Sync
2
+
3
+ on :
4
+ # push:
5
+ # branches:
6
+ # - main
7
+ workflow_dispatch :
8
+
9
+ jobs :
10
+ qiita_sync_check :
11
+ name : Run qiita-sync sync
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : Checkout
15
+ uses : actions/checkout@v2
16
+ - name : Set up Python
17
+ uses : actions/setup-python@v2
18
+ with :
19
+ python-version : " 3.9"
20
+ - name : Install qiita-sync
21
+ run : |
22
+ python -m pip install qiita-sync
23
+ - name : Run qiita-sync
24
+ run : |
25
+ qiita_sync sync .
26
+ env :
27
+ QIITA_ACCESS_TOKEN : ${{ secrets.QIITA_ACCESS_TOKEN }}
28
+ - name : Git
29
+ run : |
30
+ find . -name '*.md' -not -path './.*' | xargs git add
31
+ if ! git diff --staged --exit-code --quiet
32
+ then
33
+ git config user.name github-actions
34
+ git config user.email [email protected]
35
+ find . -name '*.md' -not -path './.*' | xargs git add
36
+ git commit -m "updated by qiita-sync"
37
+ git push
38
+ fi
Original file line number Diff line number Diff line change
1
+ name : Qiita Sync Check
2
+
3
+ on :
4
+ schedule :
5
+ # If all users work at the same time, GitHub and Qiita will be overloaded at the same time.
6
+ - cron : " 29 19 * * *" # JST 4:29 <- Change, please.
7
+ workflow_run :
8
+ workflows : ["Qiita Sync"]
9
+ types :
10
+ - completed
11
+ workflow_dispatch :
12
+
13
+ jobs :
14
+ qiita_sync_check :
15
+ name : qiita-sync check
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - name : Checkout
19
+ uses : actions/checkout@v2
20
+ - name : Set up Python
21
+ uses : actions/setup-python@v2
22
+ with :
23
+ python-version : " 3.9"
24
+ - name : Install qiita-sync
25
+ run : |
26
+ python -m pip install qiita-sync
27
+ - name : Run qiita-sync check
28
+ run : |
29
+ qiita_sync check . > ./qiita_sync_output.txt
30
+ cat ./qiita_sync_output.txt
31
+ [ ! -s "qiita_sync_output.txt" ] || exit 1
32
+ env :
33
+ QIITA_ACCESS_TOKEN : ${{ secrets.QIITA_ACCESS_TOKEN }}
Original file line number Diff line number Diff line change
1
+ # qiita-content-boilerplate
You can’t perform that action at this time.
0 commit comments