From 3c549da731f20150890a82d1b7fec8c0acebc3d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=20Fran=C3=A7ois?= Date: Fri, 26 Jun 2026 16:29:46 +0200 Subject: [PATCH 1/2] expose config flag in rsmetacheck action --- README.md | 2 +- action.yml | 3 +++ entrypoint.sh | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7d9f9b3..16c2c99 100644 --- a/README.md +++ b/README.md @@ -27,9 +27,9 @@ jobs: uses: SoftwareUnderstanding/rs-metacheck-action@0.3.1 # optional arguments with: - input: https://github.com/$GITHUB_REPOSITORY # if input is omited it will use GITHUB_REPOSITORY url pitfalls_output: "./pitfalls_outputs" verbose: "false" + # config: ".github/workflow/rsmetacheck.toml" ``` ### Inputs diff --git a/action.yml b/action.yml index a7aa167..ffdc65b 100644 --- a/action.yml +++ b/action.yml @@ -41,6 +41,9 @@ inputs: description: "Include both detected AND undetected pitfalls in the output JSON-LD." required: false default: "false" + config: + description: "Path to a TOML configuration file for RsMetaCheck." + required: false outputs: has_pitfalls: diff --git a/entrypoint.sh b/entrypoint.sh index aaf7744..51020cd 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -47,6 +47,10 @@ if [ -n "$INPUT_BRANCH" ]; then CMD="$CMD --branch \"$INPUT_BRANCH\"" fi +if [ -n "$INPUT_CONFIG" ]; then + CMD="$CMD --config \"$INPUT_CONFIG_FILE\"" +fi + echo "Executing RsMetaCheck command:" echo "$CMD" From 1306342a546b3023190aa8c87c55fd36ee4505f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=20Fran=C3=A7ois?= Date: Fri, 26 Jun 2026 16:40:24 +0200 Subject: [PATCH 2/2] also expose the config-profile parameter and align README with actual state --- README.md | 6 ++++-- action.yml | 3 +++ entrypoint.sh | 4 ++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 16c2c99..0e17c28 100644 --- a/README.md +++ b/README.md @@ -30,13 +30,14 @@ jobs: pitfalls_output: "./pitfalls_outputs" verbose: "false" # config: ".github/workflow/rsmetacheck.toml" + # config-profile: "prerelease" # use to set a profile defined in config. Overides the active_profile defined in rsmetacheck.toml ``` ### Inputs | Input | Description | Required | Default | | ------------------- | ---------------------------------------------------------------------- | -------- | ------------------------- | -| `input` | One or more: GitHub/GitLab URLs, JSON files containing repositories. | **Yes** | | +| `input` | One or more: GitHub/GitLab URLs, JSON files containing repositories. | No | https://github.com/$GITHUB_REPOSITORY | | `skip_somef` | Skip SoMEF execution and analyze existing SoMEF output files directly. | No | `false` | | `pitfalls_output` | Directory to store pitfall JSON-LD files. | No | `./pitfalls_outputs` | | `somef_output` | Directory to store SoMEF output files. | No | `./somef_outputs` | @@ -45,7 +46,8 @@ jobs: | `branch` | Branch of the repository to analyze. | No | | | `generate_codemeta` | Generate codemeta files for each repository. | No | `false` | | `verbose` | Include both detected AND undetected pitfalls in the output JSON-LD. | No | `false` | -| `config` | Specify the location of the `rsmetacheck.toml` to define the configuration. RSMetaCheck automatically detects a .rsmetacheck.toml (or rsmetacheck.toml) file at the working directory. | No | `rsmetacheck.toml` | +| `config` | Specify the location of the `rsmetacheck.toml` to define the configuration. RSMetaCheck automatically detects a .rsmetacheck.toml (or rsmetacheck.toml) file at the working directory. | No | `rsmetacheck.toml` | +| `config-profile` | Specify the profile to use. SHould be defined in the config file | No | | ### Outputs diff --git a/action.yml b/action.yml index ffdc65b..4942af2 100644 --- a/action.yml +++ b/action.yml @@ -44,6 +44,9 @@ inputs: config: description: "Path to a TOML configuration file for RsMetaCheck." required: false + config_profile: + description: "Profile name in the TOML configuration file to use for RsMetaCheck." + required: false outputs: has_pitfalls: diff --git a/entrypoint.sh b/entrypoint.sh index 51020cd..36e12af 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -51,6 +51,10 @@ if [ -n "$INPUT_CONFIG" ]; then CMD="$CMD --config \"$INPUT_CONFIG_FILE\"" fi +if [ -n "$INPUT_CONFIG_PROFILE" ]; then + CMD="$CMD --config-profile \"$INPUT_CONFIG_PROFILE\"" +fi + echo "Executing RsMetaCheck command:" echo "$CMD"