Skip to content

Commit

Permalink
Merge pull request #5457 from karczex/do_not_run_self_hosted_on_forks
Browse files Browse the repository at this point in the history
Do not run self-hosted jobs on forks
  • Loading branch information
wlemkows committed May 27, 2022
2 parents 91f4159 + 93f0cca commit b2b1563
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on: [push, pull_request]
jobs:
linux:
name: PMDK_runners
if: github.repository == 'pmem/pmdk'
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down
3 changes: 2 additions & 1 deletion utils/check-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ if [ "$prefix" = "" ]; then
exit 1
fi

commit_len=$(git log --format="%s%n%b" -n 1 $1 | wc -L)
ignore_long_link_lines="!/^http/"
commit_len=$(git log --format="%s%n%b" -n 1 $1 | awk ${ignore_long_link_lines} | wc -L)

if [ $commit_len -gt 73 ]; then
echo "FAIL: commit message exceeds 72 chars per line (commit_len)"
Expand Down

0 comments on commit b2b1563

Please sign in to comment.