File tree 2 files changed +16
-9
lines changed
2 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 1
- name : debug
1
+ name : update_version
2
2
3
3
on :
4
4
workflow_dispatch :
5
5
inputs :
6
6
tag :
7
- description : " test Tag"
8
- required : true
7
+ description : " 版本号"
8
+ type : string
9
+ change :
10
+ description : " 提交内容"
11
+ type : string
9
12
10
13
jobs :
11
- linux :
14
+ jobA :
12
15
name : Linux
13
16
runs-on : ubuntu-latest
14
- timeout-minutes : 30
17
+ if : github.event.inputs.tag != '' && github.event.inputs.change != ''
15
18
steps :
16
19
- uses : actions/checkout@v2
17
20
- run : |
18
21
ls
19
22
sed -i "s/\"version\":.*$/\"version\": \"${{ github.event.inputs.tag }}\",/" package.json
20
- git config user.name github-actions
21
- git config user.email [email protected]
23
+ echo -e "## version ${{ github.event.inputs.tag }}\n\n- ${{ github.event.inputs.change }}\n\n$(cat CHANGELOG.md)" > CHANGELOG.md
24
+ git config user.name ccagml
25
+ git config user.email [email protected]
22
26
git add .
23
- git commit -m "update version"
27
+ git commit -m ${{ github.event.inputs.change }}
24
28
git push
Original file line number Diff line number Diff line change @@ -483,7 +483,10 @@ class TreeViewController implements Disposable {
483
483
const showLockedFlag : boolean = isShowLocked ( ) ;
484
484
const useEndpointTranslation : boolean = isUseEndpointTranslation ( ) ;
485
485
const result : string = await executeService . getAllProblems ( showLockedFlag , useEndpointTranslation ) ;
486
- const all_problem_info = JSON . parse ( result ) ;
486
+ let all_problem_info = JSON . parse ( result ) ;
487
+ if ( ! showLockedFlag ) {
488
+ all_problem_info = all_problem_info . filter ( ( p ) => ! p . locked ) ;
489
+ }
487
490
const problems : IProblem [ ] = [ ] ;
488
491
const AllScoreData = treeDataService . getScoreData ( ) ;
489
492
// 增加直接在线获取分数数据
You can’t perform that action at this time.
0 commit comments