Skip to content

Commit

Permalink
addeed ci-orchestrator
Browse files Browse the repository at this point in the history
  • Loading branch information
x-platformcoder committed Nov 19, 2024
1 parent 95c916c commit d56170d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci-orchestrator.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d56170d

Please sign in to comment.