There was an error while loading. Please reload this page.
1 parent b2aa417 commit 43baf9cCopy full SHA for 43baf9c
.github/workflows/ci.yaml
@@ -169,6 +169,16 @@ 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
+ run: |
178
+ LOCAL_BRANCH_NAME=$([ "${{ github.event_name }}" == "pull_request" ] && echo "${{ github.head_ref }}" || echo "${{ github.ref_name }}")
179
+ git branch -D $LOCAL_BRANCH_NAME 2>/dev/null || true
180
+ git branch $LOCAL_BRANCH_NAME HEAD
181
+ git checkout $LOCAL_BRANCH_NAME
182
183
- name: Install PHP with extensions
184
uses: shivammathur/setup-php@v2
0 commit comments