From cdcecd8ac4b3a4c8813013dc3304fc1c7de61ac4 Mon Sep 17 00:00:00 2001 From: MichaelKora Date: Fri, 1 Dec 2023 12:48:54 +0100 Subject: [PATCH] Clean code --- actions/action-lint/action.yaml | 1 + docs/references/actions/action-lint/Variables.md | 12 ++++-------- format_md_with_dprint.py | 4 ++-- generate-doc.py | 1 - 4 files changed, 7 insertions(+), 11 deletions(-) diff --git a/actions/action-lint/action.yaml b/actions/action-lint/action.yaml index 7eef8dbed..0d8f52551 100644 --- a/actions/action-lint/action.yaml +++ b/actions/action-lint/action.yaml @@ -1,6 +1,7 @@ name: "Lint actions and workflows" description: "Lint all actions and workflows of a repository" inputs: + reff: description: "The ref name to checkout the repository." required: false diff --git a/docs/references/actions/action-lint/Variables.md b/docs/references/actions/action-lint/Variables.md index d996a0792..22ed166e2 100644 --- a/docs/references/actions/action-lint/Variables.md +++ b/docs/references/actions/action-lint/Variables.md @@ -1,20 +1,16 @@ # Refenrences action-lint composite action - ## Inputs -| INPUT | TYPE | REQUIRED | DEFAULT | DESCRIPTION | -| ------------------- | ------ | -------- | ----------- | ------------------------------------------ | -| action-lint-version | string | false | `"v1.6.22"` | The action lint repository version to use. | -| reff | string | false | | The ref name to checkout the repository. | +| INPUT | TYPE | REQUIRED | DEFAULT | DESCRIPTION | +|---------------------|--------|----------|-------------|--------------------------------------------| +| action-lint-version | string | false | `"v1.6.22"` | The action lint repository version to use. | +| reff | string | false | | The ref name to checkout the repository. | - ## Outputs - No outputs. - diff --git a/format_md_with_dprint.py b/format_md_with_dprint.py index 917680c73..1a1301080 100644 --- a/format_md_with_dprint.py +++ b/format_md_with_dprint.py @@ -1,6 +1,6 @@ import subprocess import sys -import os +# import os def format_md_with_dprint(files): @@ -10,7 +10,7 @@ def format_md_with_dprint(files): if __name__ == "__main__": # Get the list of files from pre-commit arguments - files_to_format = sys.argv[1:] + # files_to_format = sys.argv[1:] # Format Markdown files with dprint format_md_with_dprint(files_to_format) diff --git a/generate-doc.py b/generate-doc.py index 6fb355c6b..c6a8575f9 100644 --- a/generate-doc.py +++ b/generate-doc.py @@ -170,7 +170,6 @@ def run(): if __name__ == "__main__": - run() # exit succcesfully # os._exit(0)