Update build_micropython.yml (#1794)
Fetch both head and merge commits of "pull" refs. This would allow the CI script to first try checkout the merge commit (which is `github.sha` on PR) and only if that fails, default to checking out the PR head.
This commit is contained in:
2
.github/workflows/build_micropython.yml
vendored
2
.github/workflows/build_micropython.yml
vendored
@@ -25,7 +25,7 @@ jobs:
|
|||||||
working-directory: ./lib/lv_bindings/lvgl
|
working-directory: ./lib/lv_bindings/lvgl
|
||||||
run: |
|
run: |
|
||||||
git fetch --force ${{ github.event.repository.git_url }} "+refs/heads/*:refs/remotes/origin/*"
|
git fetch --force ${{ github.event.repository.git_url }} "+refs/heads/*:refs/remotes/origin/*"
|
||||||
git fetch --force ${{ github.event.repository.git_url }} "+refs/pull/*/head:refs/remotes/origin/pr/*"
|
git fetch --force ${{ github.event.repository.git_url }} "+refs/pull/*:refs/remotes/origin/pr/*"
|
||||||
git checkout ${{ github.sha }} || git checkout ${{ github.event.pull_request.head.sha }}
|
git checkout ${{ github.sha }} || git checkout ${{ github.event.pull_request.head.sha }}
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
- name: Build mpy-cross
|
- name: Build mpy-cross
|
||||||
|
|||||||
Reference in New Issue
Block a user