Skip to content

CI/CD

CI/CD #104

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
on:
push:
branches:
- main # run pipeline on pull request
pull_request:
merge_group: # run pipeline on merge queue
workflow_dispatch: # run this workflow manually from the Actions tab
inputs:
create_release:
type: boolean
description: Create a release when CI passes
default: false
required: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-ci-build
cancel-in-progress: true
jobs:
ci-started:
runs-on: ubuntu-latest
steps:
- run: echo "ci started"
build-test-release:

Check failure on line 32 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI Build

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 32, Col: 3): Error calling workflow 'PowerGridModel/power-grid-model-ds/.github/workflows/build-test-release.yml@74046addd18193e666691a9aa76b9328c6630a33'. The nested job 'publish' is requesting 'id-token: write', but is only allowed 'id-token: none'.
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
name: build-test-release
uses: "./.github/workflows/build-test-release.yml"
permissions:
contents: write
with:
create_release: ${{ inputs.create_release }}
check-code-quality:
uses: "./.github/workflows/check-code-quality.yml"
reuse-compliance:
uses: "./.github/workflows/reuse-compliance.yml"
ci-passed:
runs-on: ubuntu-latest
needs: [ci-started, build-test-release, check-code-quality, reuse-compliance]
if: always()
steps:
# this explicit check is needed cfr. https://github.com/orgs/community/discussions/75568
- name: "Check whether all jobs passed"
run: echo '${{ toJSON(needs) }}' | jq -e 'to_entries | all(.value.result == "success")'
- run: echo "ci passed"