File tree Expand file tree Collapse file tree 7 files changed +22
-12
lines changed Expand file tree Collapse file tree 7 files changed +22
-12
lines changed Original file line number Diff line number Diff line change 21
21
merge_group :
22
22
23
23
concurrency :
24
- group : ${{ github.workflow }}-${{ github.ref }}
24
+ group : ${{ github.workflow }}-${{ github.ref }}-code-quality
25
25
cancel-in-progress : true
26
26
27
27
jobs :
Original file line number Diff line number Diff line change 21
21
workflow_dispatch :
22
22
23
23
concurrency :
24
- group : ${{ github.workflow }}-${{ github.ref }}
24
+ group : ${{ github.workflow }}-${{ github.ref }}-citations
25
25
cancel-in-progress : true
26
26
27
27
jobs :
Original file line number Diff line number Diff line change 35
35
required : true
36
36
37
37
concurrency :
38
- group : ${{ github.workflow }}-${{ github.ref }}
38
+ group : ${{ github.workflow }}-${{ github.ref }}-clang-tidy
39
39
cancel-in-progress : true
40
40
41
41
jobs :
77
77
- name : Set build target in case of workflow dispatch
78
78
if : github.event_name == 'workflow_dispatch' || github.event.event_name == 'workflow_call'
79
79
run : |
80
- echo "TARGET=${{ github.event. inputs.target }}" >> $GITHUB_ENV
80
+ echo "TARGET=${{ inputs.target }}" >> $GITHUB_ENV
81
81
82
82
- name : Build
83
83
run : |
Original file line number Diff line number Diff line change 16
16
merge_group :
17
17
# run pipeline from another workflow
18
18
workflow_call :
19
+ inputs :
20
+ create_release :
21
+ type : boolean
22
+ description : Create a (pre-)release when CI passes
23
+ default : false
24
+ required : false
19
25
# run this workflow manually from the Actions tab
20
26
workflow_dispatch :
21
27
inputs :
22
28
create_release :
23
29
type : boolean
24
30
description : Create a (pre-)release when CI passes
25
- default : true
31
+ default : false
26
32
required : true
27
33
28
34
concurrency :
29
- group : ${{ github.workflow }}-${{ github.ref }}
35
+ group : ${{ github.workflow }}-${{ github.ref }}-main
30
36
cancel-in-progress : true
31
37
32
38
@@ -305,15 +311,15 @@ jobs:
305
311
run : echo "${{ steps.tag.outputs.tag }}"
306
312
307
313
- name : Upload wheels
308
- if : (github.event_name == 'push') || ((github.event_name == 'workflow_dispatch') && (github.event. inputs.create_release == 'true'))
314
+ if : (github.event_name == 'push') || ((github.event_name == 'workflow_dispatch') && (inputs.create_release == 'true'))
309
315
run : |
310
316
pip install twine
311
317
echo "Publish to PyPI..."
312
318
twine upload --verbose wheelhouse/*
313
319
314
320
- name : Release
315
321
uses : softprops/action-gh-release@v2
316
- if : (github.event_name == 'push') || ((github.event_name == 'workflow_dispatch') && (github.event. inputs.create_release == 'true'))
322
+ if : (github.event_name == 'push') || ((github.event_name == 'workflow_dispatch') && (inputs.create_release == 'true'))
317
323
with :
318
324
files : |
319
325
./wheelhouse/*
Original file line number Diff line number Diff line change 11
11
- cron : " 0 2 * * *" # Based on UTC time
12
12
13
13
concurrency :
14
- group : ${{ github.workflow }}-${{ github.ref }}
14
+ group : ${{ github.workflow }}-${{ github.ref }}-nightly
15
15
cancel-in-progress : true
16
16
17
17
jobs :
18
18
main :
19
19
uses : " ./.github/workflows/main.yml"
20
+ permissions :
21
+ contents : write
22
+ with :
23
+ create_release : false
20
24
21
25
clang-tidy :
22
26
uses : " ./.github/workflows/clang-tidy.yml"
23
27
with :
24
28
target : power_grid_model_c
25
- # target: "all power_grid_model_benchmark_cpp" # TODO(mgovers): re-enable when more clang-tidy stuff is fixed
29
+ # target: "all power_grid_model_benchmark_cpp" # TODO(mgovers): re-enable when more clang-tidy stuff is fixed
Original file line number Diff line number Diff line change 15
15
merge_group :
16
16
17
17
concurrency :
18
- group : ${{ github.workflow }}-${{ github.ref }}
18
+ group : ${{ github.workflow }}-${{ github.ref }}-reuse-compliance
19
19
cancel-in-progress : true
20
20
21
21
jobs :
Original file line number Diff line number Diff line change 15
15
merge_group :
16
16
17
17
concurrency :
18
- group : ${{ github.workflow }}-${{ github.ref }}
18
+ group : ${{ github.workflow }}-${{ github.ref }}-sonar
19
19
cancel-in-progress : true
20
20
21
21
jobs :
You can’t perform that action at this time.
0 commit comments