-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (28 loc) · 1.09 KB
/
common_ccdc_status_checks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
# This status check is updated on all repositories by the moan.py script
# in the github-repository-management repository.
# Changes in this file will be overwritten periodically.
# To make changes persistent, please mark this repository with update_status_check: false
# or make your changes in the github-repository-management/status_check.yml file
name: Common CCDC PR Checks
on: [pull_request] # yamllint disable-line rule:truthy
jobs:
ccdc-commit-hooks-on-pull-request-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.7"
- name: Get the commit message
run: |
echo 'commit_message<<EOF' >> $GITHUB_ENV
git log --format=%B -n 1 ${{ github.event.after }} >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- name: Check pull request files with commit hook action
uses: ccdc-opensource/commit-hooks@main
with:
commitMessage: ${{ env.commit_message }}