Skip to content

Commit

Permalink
Merge pull request #246 from PowerGridModel/feature/run-citation-on-w…
Browse files Browse the repository at this point in the history
…orkflow-change

run citations workflow when current workflow changes + add concurrency check
  • Loading branch information
Jerry-Jinfeng-Guo authored Apr 24, 2024
2 parents e6d3c32 + 76ee77d commit 52592d2
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build-test-and-sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ on:
default: true
required: true

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:

build-python:
Expand Down Expand Up @@ -94,6 +98,9 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: ["3.9", "3.10", "3.11", "3.12"]
exclude:
- os: macos-latest
python: "3.9"
fail-fast: false
runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -125,6 +132,9 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: ["3.9", "3.10", "3.11", "3.12"]
exclude:
- os: macos-latest
python: "3.9"
fail-fast: false
runs-on: ${{ matrix.os }}

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/check-blocking-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:
# run this workflow manually from the Actions tab
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check-blocking-labels:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/check-code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
# run pipeline on merge queue
merge_group:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check-code-quality:
runs-on: ubuntu-latest
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/citations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,19 @@ on:
- main
paths:
- CITATION.cff
- .github/workflows/citations.yml

pull_request:
paths:
- CITATION.cff
- .github/workflows/citations.yml

workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
validate-citations:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/reuse-compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
# run pipeline on merge queue
merge_group:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
reuse-compliance-check:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 52592d2

Please sign in to comment.