Skip to content

Commit 267272c

Browse files
authored
Merge pull request #276 from PowerGridModel/feature/add-nightly
add nightly
2 parents cb03804 + 5aa851a commit 267272c

File tree

6 files changed

+55
-8
lines changed

6 files changed

+55
-8
lines changed

.github/workflows/build-test-and-sonar.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,25 @@ on:
1313
pull_request:
1414
# run pipeline on merge queue
1515
merge_group:
16+
# run pipeline from another workflow
17+
workflow_call:
18+
inputs:
19+
create_release:
20+
type: boolean
21+
description: Create a (pre-)release when CI passes
22+
default: false
23+
required: false
1624
# run this workflow manually from the Actions tab
1725
workflow_dispatch:
1826
inputs:
1927
create_release:
2028
type: boolean
2129
description: Create a (pre-)release when CI passes
22-
default: true
30+
default: false
2331
required: true
2432

2533
concurrency:
26-
group: ${{ github.workflow }}-${{ github.ref }}
34+
group: ${{ github.workflow }}-${{ github.ref }}-main
2735
cancel-in-progress: true
2836

2937
jobs:

.github/workflows/check-blocking-labels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
workflow_dispatch:
2020

2121
concurrency:
22-
group: ${{ github.workflow }}-${{ github.ref }}
22+
group: ${{ github.workflow }}-${{ github.ref }}-blocking-labels
2323
cancel-in-progress: true
2424

2525
jobs:

.github/workflows/check-code-quality.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ on:
1313
pull_request:
1414
# run pipeline on merge queue
1515
merge_group:
16+
# run pipeline from another workflow
17+
workflow_call:
1618

1719
concurrency:
18-
group: ${{ github.workflow }}-${{ github.ref }}
20+
group: ${{ github.workflow }}-${{ github.ref }}-code-quality
1921
cancel-in-progress: true
2022

2123
jobs:

.github/workflows/citations.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,17 @@ on:
1212
paths:
1313
- CITATION.cff
1414
- .github/workflows/citations.yml
15-
1615
pull_request:
1716
paths:
1817
- CITATION.cff
1918
- .github/workflows/citations.yml
20-
19+
# run pipeline from another workflow
20+
workflow_call:
21+
# run this workflow manually from the Actions tab
2122
workflow_dispatch:
2223

2324
concurrency:
24-
group: ${{ github.workflow }}-${{ github.ref }}
25+
group: ${{ github.workflow }}-${{ github.ref }}-citations
2526
cancel-in-progress: true
2627

2728
jobs:

.github/workflows/nightly.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# SPDX-FileCopyrightText: Contributors to the Power Grid Model project <[email protected]>
2+
#
3+
# SPDX-License-Identifier: MPL-2.0
4+
5+
name: Nightly build
6+
7+
# Controls when the workflow will run
8+
on:
9+
workflow_dispatch:
10+
schedule:
11+
- cron: "0 2 * * *" # Based on UTC time
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}-nightly
15+
cancel-in-progress: true
16+
17+
jobs:
18+
main:
19+
uses: "./.github/workflows/build-test-and-sonar.yml"
20+
permissions:
21+
contents: write
22+
with:
23+
create_release: false
24+
25+
check-code-quality:
26+
uses: "./.github/workflows/check-code-quality.yml"
27+
28+
reuse-compliance:
29+
uses: "./.github/workflows/reuse-compliance.yml"
30+
31+
citations:
32+
uses: "./.github/workflows/citations.yml"

.github/workflows/reuse-compliance.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ on:
1313
pull_request:
1414
# run pipeline on merge queue
1515
merge_group:
16+
# run pipeline from another workflow
17+
workflow_call:
18+
# run this workflow manually from the Actions tab
19+
workflow_dispatch:
1620

1721
concurrency:
18-
group: ${{ github.workflow }}-${{ github.ref }}
22+
group: ${{ github.workflow }}-${{ github.ref }}-reuse-compliance
1923
cancel-in-progress: true
2024

2125
jobs:

0 commit comments

Comments
 (0)