Skip to content

Commit 101b487

Browse files
committed
[run-slow] Fixing run slow
1 parent e1caeb9 commit 101b487

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
runs-on: ${{ matrix.os }}
3737
steps:
3838
- uses: actions/checkout@v4
39+
with:
40+
fetch-depth: 1 # Fetch the latest commit to inspect its message
3941

4042
- name: Set up Python ${{ matrix.python-version }}
4143
uses: actions/setup-python@v5
@@ -53,7 +55,7 @@ jobs:
5355
5456
- name: Fetch latest commit message
5557
id: get_commit_message
56-
run: echo "COMMIT_MESSAGE=$(git log -1 --pretty=%B)" >> $GITHUB_ENV
58+
run: echo "COMMIT_MESSAGE=$(git log -2 --pretty=%B)" >> $GITHUB_ENV
5759

5860
- name: Test with PyTest
5961
env:

0 commit comments

Comments
 (0)