-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix : added merge group support + action.yml for github action (#129)
Signed-off-by: Ethan Perruzza <[email protected]>
- Loading branch information
1 parent
30353d8
commit c9ae1d5
Showing
6 changed files
with
58 additions
and
27 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,22 +112,21 @@ on: | |
branches: | ||
- master | ||
jobs: | ||
check: | ||
check_dco: | ||
runs-on: ubuntu-latest | ||
name: Check DCO | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.x | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
- name: Check DCO | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
pip3 install -U dco-check | ||
dco-check | ||
- name: Run dco-check | ||
uses: christophebedard/[email protected] | ||
with: | ||
python-version: '3.12' | ||
args: '--verbose' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
``` | ||
|
||
Please note that the `with:` property is optional, the default Python version is 3.12 and no additional arguments are passed by default. | ||
|
||
### GitLab | ||
|
||
```yaml | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# action.yml | ||
name: 'DCO check' | ||
description: 'A reusable action that checks that all commits for a proposed change are signed off' | ||
|
||
inputs: | ||
args: | ||
description: "Arguments to be added the dco_check.py execution line." | ||
required: false | ||
default: '' | ||
python-version: | ||
description: "The version of python to be used." | ||
required: false | ||
default: '3.12' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
|
||
- name: Check DCO | ||
run: python ${{ github.action_path }}/dco_check/dco_check.py ${{ inputs.args }} | ||
shell: bash |
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
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