File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ # This status check is updated on all repositories by the moan.py script
3+ # in the github-repository-management repository.
4+ # Changes in this file will be overwritten periodically.
5+ # To make changes persistent, please mark this repository with update_status_check: false
6+ # or make your changes in the github-repository-management/status_check.yml file
7+ name : Common CCDC PR Checks
8+ on : [pull_request]
9+ jobs :
10+ ccdc-commit-hooks-on-pull-request-check :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v2
14+ with :
15+ ref : ${{ github.head_ref }}
16+ fetch-depth : 0
17+ - uses : actions/setup-python@v2
18+ with :
19+ python-version : " 3.7"
20+ - name : Get the commit message
21+ run : |
22+ echo 'commit_message<<EOF' >> $GITHUB_ENV
23+ git log --format=%B -n 1 ${{ github.event.after }} >> $GITHUB_ENV
24+ echo 'EOF' >> $GITHUB_ENV
25+ - name : Check pull request files with commit hook action
26+ uses : ccdc-opensource/commit-hooks@main
27+ with :
28+ commitMessage : ${{ env.commit_message }}
You can’t perform that action at this time.
0 commit comments