Skip to content

Setup of a single PR workflow #8

Setup of a single PR workflow

Setup of a single PR workflow #8

Workflow file for this run

# SPDX-FileCopyrightText: Contributors to the Power Grid Model project <[email protected]>
#
# SPDX-License-Identifier: MPL-2.0
name: CI Build
# Controls when the workflow will run
on:
# run pipeline on push event of main branch
push:
branches:
- main
# run pipeline on pull request
pull_request:
# run pipeline on merge queue
merge_group:
# run this workflow manually from the Actions tab
workflow_dispatch:
schedule:
- cron: "0 2 * * *" # Based on UTC time
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-ci-build
cancel-in-progress: true
jobs:
build-test-release:
uses: "./.github/workflows/build-test-release.yml"
permissions:
contents: write
with:
create_release: false
check-code-quality:
uses: "./.github/workflows/check-code-quality.yml"
reuse-compliance:
uses: "./.github/workflows/reuse-compliance.yml"
clang-tidy:
uses: "./.github/workflows/clang-tidy.yml"
with:
target: "all power_grid_model_benchmark_cpp"
citations:
uses: "./.github/workflows/citations.yml"
sonar:
uses: "./.github/workflows/sonar.yml"

Check failure on line 49 in .github/workflows/CI.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/CI.yml

Invalid workflow file

error parsing called workflow ".github/workflows/CI.yml" -> "./.github/workflows/sonar.yml" : secret name `GITHUB_TOKEN` within `workflow_call` can not be used since it would collide with system reserved name
with:
sonar_token: ${{ secrets.SONAR_TOKEN }}
secrets:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}