diff --git a/.github/workflows/GitFlow_Check-pull-request-source-branch.yml b/.github/workflows/GitFlow_Check-pull-request-source-branch.yml index 86d9a928..495b3d50 100644 --- a/.github/workflows/GitFlow_Check-pull-request-source-branch.yml +++ b/.github/workflows/GitFlow_Check-pull-request-source-branch.yml @@ -34,10 +34,11 @@ jobs: # Step 1: Check branch pattern - name: Check branch pattern id: branch_check + env: + HEAD_REF: ${{ github.head_ref }} + BASE_REF: ${{ github.base_ref }} run: | - # Get branch information from context - HEAD_REF="${{ github.head_ref }}" - BASE_REF="${{ github.base_ref }}" + # Les variables sont maintenant définies dans l'environnement plutôt qu'injectées directement MAIN_BRANCH="${{ env.MAIN_BRANCH }}" VALID_PATTERN="${{ env.VALID_PATTERNS }}" @@ -175,4 +176,4 @@ jobs: } } catch (error) { console.log(`Error in cleanup: ${error}`); - } + } \ No newline at end of file