Skip to content

Commit f93047e

Browse files
committed
ci: wip: Display message on PR. Missing CL.
1 parent a9422b5 commit f93047e

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/commit-format.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
check_commit_changelogs:
1111
runs-on: ubuntu-latest
1212
name: check-changelogs
13+
permissions:
14+
pull-requests: write
1315

1416
steps:
1517
- uses: actions/checkout@v3
@@ -22,11 +24,21 @@ jobs:
2224
sudo apt-get update;
2325
sudo apt-get install -y \
2426
python3 \
25-
python3-git
26-
27+
python3-git;
28+
cargo install --git https://github.com/cohenarthur/gerris;
29+
2730
- name: GCC check PR Commits
2831
run: |
29-
python3 contrib/gcc-changelog/git_check_commit.py origin/${{ github.event.pull_request.base.ref }}..${{ github.event.pull_request.head.sha }}
32+
python3 contrib/gcc-changelog/git_check_commit.py origin/${{ github.event.pull_request.base.ref }}..${{ github.event.pull_request.head.sha }} | tee results.log
33+
gerris < results.log | tee gerris-results.log
34+
35+
# rerun (remove)
36+
- uses: mshick/add-pr-comment@v2
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GERRIS_TOKEN }}
39+
with:
40+
allow-repeats: true
41+
message-path: gerris-results.log
3042

3143
check_commit_prefixes:
3244
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)