Skip to content

Commit

Permalink
Update ci-orchestrator.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
energinet-ajw committed Dec 5, 2024
1 parent b4069d3 commit c568864
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/ci-orchestrator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ concurrency:

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 }}

changes:
uses: ./.github/workflows/detect-changes.yml

Expand All @@ -22,10 +32,25 @@ jobs:
has_electrical_heating_changes: ${{ needs.changes.outputs.electrical_heating == 'true' }}
image_tag: ${{ needs.outputs.image_tag }}

#
# Branch policy status check
#

allow_merge_ci_orchestrator:
runs-on: ubuntu-latest
needs:
[
changes,
ci_base,
ci_electrical_heating,
]
if: |
always()
steps:
- name: Verify if merge is allowed
run: |
echo "Success"
echo "${{ toJSON(needs) }}"
if [[ ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }} = true ]]; then
echo "Failed"
exit 1
fi

0 comments on commit c568864

Please sign in to comment.