Allow for user configurable message header #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Duplicate code | |
on: pull_request | |
jobs: | |
duplicate-code-check: | |
name: Check for duplicate code | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check for duplicate code (1) | |
uses: ./ | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
directories: "./" | |
# Only examine .h and .cpp files | |
file_extensions: "py" | |
ignore_below: 1 | |
fail_above: 70 | |
warn_above: 15 | |
one_comment: true | |
header_message_start: '## 📌 Duplicate code detection tool report (1)' | |
- name: Check for duplicate code (2) | |
uses: ./ | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
directories: "./" | |
# Only examine .h and .cpp files | |
file_extensions: "py" | |
ignore_below: 1 | |
fail_above: 70 | |
warn_above: 15 | |
one_comment: true | |
header_message_start: '## 📌 Duplicate code detection tool report (2)' |