From 18124c2cbd39d6d7dca3c86060ea6f03f4b5b8a9 Mon Sep 17 00:00:00 2001 From: Javier Rodriguez Date: Thu, 6 Jun 2024 13:28:30 +0200 Subject: [PATCH] fix(workflows-onboarding): Fixes the name of workflow name if not provided Signed-off-by: Javier Rodriguez --- .github/workflows/chainloop_onboard.yml | 3 +- .idea/labs.iml | 4 ++ .idea/vcs.xml | 6 +++ .idea/workspace.xml | 70 +++++++++++++++++++++++++ 4 files changed, 82 insertions(+), 1 deletion(-) create mode 100644 .idea/labs.iml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml diff --git a/.github/workflows/chainloop_onboard.yml b/.github/workflows/chainloop_onboard.yml index 4f324f8..ef43587 100644 --- a/.github/workflows/chainloop_onboard.yml +++ b/.github/workflows/chainloop_onboard.yml @@ -36,7 +36,8 @@ jobs: run: | workflow_name=${{ inputs.workflow_name }} if [[ "$workflow_name" = "" ]]; then - workflow_name=$(basename "$PARENT_WORKFLOW" | sed "s/\..*$//g") + # Extract the parent workflow name and convert to lowercase with hyphens + workflow_name=$(basename "$PARENT_WORKFLOW" | sed 's/\..*$//g; s/[[:space:]]/-/g; s/_/-/g' | tr '[:upper:]' '[:lower:]') fi echo "workflow_name=$workflow_name" >> $GITHUB_OUTPUT diff --git a/.idea/labs.iml b/.idea/labs.iml new file mode 100644 index 0000000..7ee078d --- /dev/null +++ b/.idea/labs.iml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..161b080 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,70 @@ + + + + + + + + + + + + + { + "customColor": "", + "associatedIndex": 3 +} + + + + { + "keyToString": { + "RunOnceActivity.ShowReadmeOnStart": "true", + "RunOnceActivity.go.formatter.settings.were.checked": "true", + "RunOnceActivity.go.migrated.go.modules.settings": "true", + "RunOnceActivity.go.modules.automatic.dependencies.download": "true", + "RunOnceActivity.go.modules.go.list.on.any.changes.was.set": "true", + "git-widget-placeholder": "main", + "go.import.settings.migrated": "true", + "go.sdk.automatically.set": "true", + "last_opened_file_path": "/Users/javirln", + "node.js.detected.package.eslint": "true", + "node.js.selected.package.eslint": "(autodetect)", + "nodejs_package_manager_path": "npm" + } +} + + + + + + + + + + + + + + true + + \ No newline at end of file