File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5353 if [ -n "$GITHUB_HEAD_REF" ] && [ -n "$GITHUB_BASE_REF" ]; then
5454 from_ref="origin/$GITHUB_HEAD_REF"
5555 to_ref="origin/$GITHUB_BASE_REF"
56- else
57- from_ref="HEAD^"
58- to_ref="HEAD"
56+ echo "From reference: $from_ref; To reference: $to_ref"
57+ pre-commit run --from-ref "$from_ref" --to-ref "$to_ref"
5958 fi
60- echo "From reference: $from_ref; To reference: $to_ref"
61- pre-commit run --from-ref "$from_ref" --to-ref "$to_ref"
6259 continue-on-error : false
6360
6461 - name : Check the current working directory
Original file line number Diff line number Diff line change 5050 if [ -n "$GITHUB_HEAD_REF" ] && [ -n "$GITHUB_BASE_REF" ]; then
5151 from_ref="origin/$GITHUB_HEAD_REF"
5252 to_ref="origin/$GITHUB_BASE_REF"
53- else
54- from_ref="HEAD^"
55- to_ref="HEAD"
53+ echo "From reference: $from_ref; To reference: $to_ref"
54+ pre-commit run --from-ref "$from_ref" --to-ref "$to_ref"
5655 fi
57- echo "From reference: $from_ref; To reference: $to_ref"
58- pre-commit run --from-ref "$from_ref" --to-ref "$to_ref"
5956 continue-on-error : false
6057
6158 - name : Run `make` to build the project
Original file line number Diff line number Diff line change 5353 if [ -n "$GITHUB_HEAD_REF" ] && [ -n "$GITHUB_BASE_REF" ]; then
5454 from_ref="origin/$GITHUB_HEAD_REF"
5555 to_ref="origin/$GITHUB_BASE_REF"
56- else
57- from_ref="HEAD^"
58- to_ref="HEAD"
56+ echo "From reference: $from_ref; To reference: $to_ref"
57+ pre-commit run --from-ref "$from_ref" --to-ref "$to_ref"
5958 fi
60- echo "From reference: $from_ref; To reference: $to_ref"
61- pre-commit run --from-ref "$from_ref" --to-ref "$to_ref"
6259 continue-on-error : false
6360
6461 - name : Build Google Test
You can’t perform that action at this time.
0 commit comments