There was an error while loading. Please reload this page.
1 parent b2aa417 commit 42b0bb0Copy full SHA for 42b0bb0
.github/workflows/ci.yaml
@@ -169,6 +169,17 @@ jobs:
169
170
- name: Checkout
171
uses: actions/checkout@v4
172
+ with:
173
+ fetch-depth: 0
174
+ ref: ${{ github.event.pull_request.head.sha || github.sha }}
175
+
176
+ - name: Use local branch
177
+ shell: bash
178
+ run: |
179
+ LOCAL_BRANCH_NAME=$([ "${{ github.event_name }}" == "pull_request" ] && echo "${{ github.head_ref }}" || echo "${{ github.ref_name }}")
180
+ git branch -D $LOCAL_BRANCH_NAME 2>/dev/null || true
181
+ git branch $LOCAL_BRANCH_NAME HEAD
182
+ git checkout $LOCAL_BRANCH_NAME
183
184
- name: Install PHP with extensions
185
uses: shivammathur/setup-php@v2
0 commit comments