-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
45 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Container running the action | ||
FROM python:3.11-slim-bookworm | ||
|
||
RUN pip install regex | ||
# Copy entry point | ||
COPY entrypoint.sh /entrypoint.sh | ||
COPY logToCs.py /logToCs.py | ||
|
||
# Code file to execute when the docker container starts up (`entrypoint.sh`) | ||
ENTRYPOINT ["/entrypoint.sh"] |
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,23 @@ | ||
--- | ||
# action.yml | ||
# | ||
name: logToCheckStyle | ||
description: Convert text log to CheckStyle xml format | ||
inputs: | ||
in: | ||
description: Source log path (Textual input log) | ||
required: true | ||
out: | ||
description: Target log path (CheckStyle xml format log) | ||
required: true | ||
root: | ||
description: Prefix to remove from paths in log | ||
required: false | ||
default: | ||
# outputs: | ||
# outpath: # id of output | ||
# description: The output path | ||
runs: | ||
using: docker | ||
image: Dockerfile | ||
args: ['${{ inputs.in }}', '${{ inputs.out }}', '${{ inputs.root }}'] |
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,3 @@ | ||
#!/bin/bash -l | ||
[ "$3" = "" ] && python /logToCs.py "$1" "$2" --root "$PWD" && exit 0 | ||
[ "$3" != "" ] && python /logToCs.py "$1" "$2" --root "$3" && exit 0 |