Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARUMLPD-86 Add parameters for target package #7

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/AutosarUmlActionExample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# file, You can obtain one at https://mozilla.org/MPL/2.0/.

# The following secrets need to be defined: INCQUERY_USERNAME, INCQUERY_PASSWORD, INCQUERY_AUTOSAR_UML_INTEGRATION_LICENSE
name: AUTOSAR-UML Bridge Action Example

on:
push:
Expand Down
24 changes: 23 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ inputs:
license:
description: "The contents of the supplied license file."
required: true
targetPackageGuid:
description: "The GUID of the package where the imported elements are placed."
required: false
targetPackagePath:
description: "The path to the package where the imported elements are placed."
required: false

runs:
using: "composite"
Expand Down Expand Up @@ -97,4 +103,20 @@ runs:
shell: pwsh
run: |
$env:ARUML_HOME = 'C:\Program Files\IncQuery Labs\IncQuery AUTOSAR-UML Bridge\Transformation\'
& 'C:\Program Files\IncQuery Labs\IncQuery AUTOSAR-UML Bridge\CLI\iql-aub-cli.exe' -i '${{ inputs.arxml_folder_path }}' -e '${{ inputs.ea_model_file_path }}' -l '${{ runner.temp }}/IncQueryAUBLic.yaml'
$targetPackageGuid = "${{ inputs.targetPackageGuid }}"
$targetPackagePath = "${{ inputs.targetPackagePath }}"
if (!([string]::IsNullOrWhitespace($targetPackageGuid)))
{
echo "Run transformation by target GUID"
& 'C:\Program Files\IncQuery Labs\IncQuery AUTOSAR-UML Bridge\CLI\iql-aub-cli.exe' -i '${{ inputs.arxml_folder_path }}' -e '${{ inputs.ea_model_file_path }}' -l '${{ runner.temp }}/IncQueryAUBLic.yaml' -t "$targetPackageGuid"
}
elseif (!([string]::IsNullOrWhitespace($targetPackagePath)))
{
echo "Run transformation by target path"
& 'C:\Program Files\IncQuery Labs\IncQuery AUTOSAR-UML Bridge\CLI\iql-aub-cli.exe' -i '${{ inputs.arxml_folder_path }}' -e '${{ inputs.ea_model_file_path }}' -l '${{ runner.temp }}/IncQueryAUBLic.yaml' -p "$targetPackagePath"
}
else
{
echo "Run transformation by default target"
& 'C:\Program Files\IncQuery Labs\IncQuery AUTOSAR-UML Bridge\CLI\iql-aub-cli.exe' -i '${{ inputs.arxml_folder_path }}' -e '${{ inputs.ea_model_file_path }}' -l '${{ runner.temp }}/IncQueryAUBLic.yaml'
}
11 changes: 11 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,14 @@ Username and password to *artifacts.incquery.io*.

Contents of the license file as-is. The AutosarUMLIntegration and AutosarUMLIntegrationCI license features are required.
This parameter is mandatory.

#### targetPackageGuid

The GUID of the package where the imported elements are placed. Takes priority over targetPackagePath if both are specified.
If neither targetPackageGuid or targetPackagePath are set, elements are placed into the alphabetically-first root model.

#### targetPackagePath

The path to the package where the imported elements are placed, separated by "." characters.
Ignored if targetPackageGuid is specified. If neither targetPackageGuid or targetPackagePath are set,
elements are placed into the alphabetically-first root model.