Update github action file
This commit is contained in:
parent
991a8a631e
commit
263a6236b0
|
|
@ -25,6 +25,8 @@ on:
|
||||||
- dev_odex25_ensan
|
- dev_odex25_ensan
|
||||||
- dev_odex25_helpdesk
|
- dev_odex25_helpdesk
|
||||||
- dev_odex25_donation
|
- dev_odex25_donation
|
||||||
|
- dev_odex25_benefit
|
||||||
|
- dev_odex25_takaful
|
||||||
|
|
||||||
- preprod_odex-event
|
- preprod_odex-event
|
||||||
- preprod_odex25_accounting
|
- preprod_odex25_accounting
|
||||||
|
|
@ -47,6 +49,8 @@ on:
|
||||||
- preprod_odex25_ensan
|
- preprod_odex25_ensan
|
||||||
- preprod_odex25_helpdesk
|
- preprod_odex25_helpdesk
|
||||||
- preprod_odex25_donation
|
- preprod_odex25_donation
|
||||||
|
- preprod_odex25_benefit
|
||||||
|
- preprod_odex25_takaful
|
||||||
|
|
||||||
- master_odex-event
|
- master_odex-event
|
||||||
- master_odex25_accounting
|
- master_odex25_accounting
|
||||||
|
|
@ -69,7 +73,8 @@ on:
|
||||||
- master_odex25_ensan
|
- master_odex25_ensan
|
||||||
- master_odex25_helpdesk
|
- master_odex25_helpdesk
|
||||||
- master_odex25_donation
|
- master_odex25_donation
|
||||||
|
- master_odex25_benefit
|
||||||
|
- master_odex25_takaful
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
@ -188,6 +193,17 @@ jobs:
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "${{ github.base_ref }}" == "preprod_odex25_benefit" && "${{ github.head_ref }}" != "dev_odex25_benefit" ]]; then
|
||||||
|
echo "::error ::You can only merge to 'preprod_odex25_donation' from 'dev_odex25_donation' branch!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "${{ github.base_ref }}" == "preprod_odex25_takaful" && "${{ github.head_ref }}" != "dev_odex25_takaful" ]]; then
|
||||||
|
echo "::error ::You can only merge to 'preprod_odex25_donation' from 'dev_odex25_donation' branch!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# ✅ Master Branches
|
# ✅ Master Branches
|
||||||
if [[ "${{ github.base_ref }}" == "master_odex-event" && "${{ github.head_ref }}" != "preprod_odex-event" ]]; then
|
if [[ "${{ github.base_ref }}" == "master_odex-event" && "${{ github.head_ref }}" != "preprod_odex-event" ]]; then
|
||||||
echo "::error ::You can only merge to 'master_odex-event' from 'preprod_odex-event' branch!"
|
echo "::error ::You can only merge to 'master_odex-event' from 'preprod_odex-event' branch!"
|
||||||
|
|
@ -294,6 +310,19 @@ jobs:
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "${{ github.base_ref }}" == "master_odex25_benefit" && "${{ github.head_ref }}" != "preprod_odex25_benefit" ]]; then
|
||||||
|
echo "::error ::You can only merge to 'master_odex25_donation' from 'preprod_odex25_donation' branch!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "${{ github.base_ref }}" == "master_odex25_takaful" && "${{ github.head_ref }}" != "preprod_odex25_takaful" ]]; then
|
||||||
|
echo "::error ::You can only merge to 'master_odex25_donation' from 'preprod_odex25_donation' branch!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# ❌ Block ALL merges to 'master'
|
# ❌ Block ALL merges to 'master'
|
||||||
if [[ "${{ github.base_ref }}" == "master" ]]; then
|
if [[ "${{ github.base_ref }}" == "master" ]]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue