Skip to content

WIP: Sondergaard/test ci changes #237

WIP: Sondergaard/test ci changes

WIP: Sondergaard/test ci changes #237

name: CI orchestrator
on:
pull_request:
branches:
- main
jobs:
#
# License and Markdown Check
#
ci_base:
uses: Energinet-DataHub/.github/.github/workflows/ci-base.yml@v13
secrets:
dh3serviceaccount_privatekey: ${{ secrets.dh3serviceaccount_privatekey }}
#
# Detect changes to start relevant workflows
#
changes:
uses: ./.github/workflows/detect-changes.yml
render_c4model_views:
needs: changes
if: ${{ needs.changes.outputs.render_c4model_views == 'true' }}
uses: Energinet-DataHub/.github/.github/workflows/structurizr-render-diagrams.yml@d9bb18a9dc2dcb21424335ac33c5c4145b0c5918
with:
structurizr_workspace_filename: views
included_model_filename: dh-base-model
secrets:
dh3serviceaccount_privatekey: ${{ secrets.dh3serviceaccount_privatekey }}
#
# Branch policy status check
#
allow_merge_ci_orchestrator:
runs-on: ubuntu-latest
needs: [ci_base, render_c4model_views]
if: |
always()
steps:
- name: Verify if merge is allowed
run: |
echo "${{ toJSON(needs) }}"
if [[ ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }} = true ]]; then
echo "Failed"
exit 1
fi