Skip to content

Commit f4f95ad

Browse files
committed
fix empty exclude commit
1 parent 1ea21cc commit f4f95ad

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ jobs:
5454
uses: ./.github/actions/deps/external
5555
with:
5656
action: cache
57+
- name: Set up mpy-cross
58+
uses: ./.github/actions/mpy_cross
59+
with:
60+
download: false
5761
- name: Get last commit with checks
5862
id: get-last-commit-with-checks
5963
if: github.event_name == 'pull_request'
@@ -63,14 +67,10 @@ jobs:
6367
REPO: ${{ github.repository }}
6468
PULL: ${{ github.event.number }}
6569
GITHUB_TOKEN: ${{ github.token }}
66-
EXCLUDE_COMMIT: ${{ github.event.after }}
67-
- name: Set up mpy-cross
68-
uses: ./.github/actions/mpy_cross
69-
with:
70-
download: false
70+
EXCLUDE_COMMIT: ${{ github.event.pull_request.head.sha }}
7171
- name: Set head sha
7272
if: github.event_name == 'pull_request'
73-
run: echo "HEAD_SHA=$(git show -s --format=%s $GITHUB_SHA | grep -o -P "(?<=Merge ).*(?= into)")" >> $GITHUB_ENV
73+
run: echo "HEAD_SHA=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
7474
- name: Set base sha
7575
if: github.event_name == 'pull_request'
7676
run: |

0 commit comments

Comments
 (0)