From d56170d8a5ce3599516b07dbc5e06cbe0ce0a4cf Mon Sep 17 00:00:00 2001 From: Jan Duelund Date: Tue, 19 Nov 2024 09:52:30 +0100 Subject: [PATCH] addeed ci-orchestrator --- .github/workflows/ci-orchestrator.yml | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/ci-orchestrator.yml diff --git a/.github/workflows/ci-orchestrator.yml b/.github/workflows/ci-orchestrator.yml new file mode 100644 index 00000000..d8940c34 --- /dev/null +++ b/.github/workflows/ci-orchestrator.yml @@ -0,0 +1,30 @@ +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 + with: + skip_license_check: true + secrets: + dh3serviceaccount_privatekey: ${{ secrets.dh3serviceaccount_privatekey }} + + # Branch policy status check + allow_merge_ci_orchestrator: + runs-on: ubuntu-latest + needs: [ci_base] + 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