feat: remove immutabilité from ci/cd
This commit is contained in:
@@ -20,22 +20,6 @@ jobs:
|
||||
steps:
|
||||
- name: 📥 Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: 🔒 Vérifier l’immutabilité des migrations
|
||||
env:
|
||||
EVENT_NAME: ${{ github.event_name }}
|
||||
PR_BASE_SHA: ${{ github.event.pull_request.base.sha }}
|
||||
PUSH_BASE_SHA: ${{ github.event.before }}
|
||||
run: |
|
||||
case "$EVENT_NAME" in
|
||||
pull_request) base_sha="$PR_BASE_SHA" ;;
|
||||
push) base_sha="$PUSH_BASE_SHA" ;;
|
||||
*) echo "Événement non supporté : $EVENT_NAME"; exit 1 ;;
|
||||
esac
|
||||
|
||||
sh scripts/ci/check-migration-immutability.sh "$base_sha"
|
||||
|
||||
- name: 🐘 Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
|
||||
Reference in New Issue
Block a user