diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55da5f89..f912807c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,15 +15,10 @@ jobs: php: [ '8.2', '8.3', '8.4' ] steps: - - name: Extract branch name - shell: bash - run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT - id: extract_branch - - - name: Checkout ${{ steps.extract_branch.outputs.branch }} + - name: Checkout ${{ github.event_name == 'workflow_dispatch' && github.head_ref || '' }} uses: actions/checkout@v4 with: - ref: ${{ steps.extract_branch.outputs.branch }} + ref: ${{ github.event_name == 'workflow_dispatch' && github.head_ref || '' }} - name: Composer install run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s composerUpdate