Skip to content

Commit 1d7b5e6

Browse files
[CONFIG] Fix commit squash (#16)
* commit 1 * fix * Add empty commit to force use PR title during squash merge * commit 4 * commit 5 * Add empty commit to force use PR title during squash merge * commit 7 * Add empty commit to force use PR title during squash merge * commit 9 * Add empty commit to force use PR title during squash merge * commit 11 * Add empty commit to force use PR title during squash merge * commit 13 * Add empty commit to force use PR title during squash merge * fix Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 0ec012d commit 1d7b5e6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/check_pr_code.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ jobs:
2828
add_empty_commit_if_only_one:
2929
needs: count_commits
3030
runs-on: ubuntu-latest
31-
if: ${{ needs.count_commit.outputs.n_commits == '1' }}
31+
# 2 commits because the PR code gets merged into a temp commit on main
32+
if: ${{ (!!needs.count_commits.outputs.n_commits) && needs.count_commits.outputs.n_commits <= 2 }}
3233
steps:
34+
3335
- name: checkout current branch
3436
uses: actions/checkout@v2
3537
with:

0 commit comments

Comments
 (0)