Skip to content

Commit bcfa701

Browse files
committed
Initial cleanup
1 parent 237907e commit bcfa701

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The action is compatible with Windows, Linux, and OSX runners. Windows self-hos
1111
* **console_version:** Version of Solsta Console Tools to use
1212
* **scripts_version:** Version of Solsta Deploy Scripts to use
1313
* **target_product:** Target product to cleanup (case-sensitive)
14-
* **target_env:** Target environment for launch files (case-sensitive)
14+
* **target_environment:** Target environment for launch files (case-sensitive)
1515
* **launch_file1:** Up to 10 launch file entry names, paths, and arguments, format for each row is ("entry name" "path" "arg1 arg2 ...")
1616

1717
## Using
@@ -23,13 +23,14 @@ Here is an example YAML Fragment in the steps section of a build:
2323
- name: Launch Files CDN data for a Product and location
2424
uses: snxd/deploy-github-launchfiles-action@v2
2525
with:
26-
console_version: '6.1.2.51'
26+
console_version: '6.1.2.84'
27+
scripts_version: '3.7.30'
2728
target_product: 'Emutil'
28-
scripts_version: '3.7.24'
29+
target_environment: 'Java'
2930
solsta_client_id: ${{ secrets.SNXD_CLIENT_ID }}
3031
solsta_client_secret: ${{ secrets.SNXD_CLIENT_SECRET }}
31-
launch_files1: '("Entry Name 1" "/path/to/exec" "arg1 arg2 ...")'
32-
launch_files2: '("Entry Name 2" "/path/to/exec" "arg1 arg2 ...")'
32+
launch_file1: '("Entry Name 1" "/path/to/exec" "arg1 arg2 ...")'
33+
launch_file2: '("Entry Name 2" "/path/to/exec" "arg1 arg2 ...")'
3334
```
3435
3536
## License

action.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ inputs:
1212
console_version:
1313
description: Version of Solsta Console Tools to use
1414
required: true
15-
default: "6.1.2.51"
15+
default: "6.1.2.84"
1616
scripts_version:
1717
description: Version of Solsta Deploy Scripts to use
1818
required: true
19-
default: "3.7.24"
19+
default: "3.7.30"
2020
target_product:
2121
description: Target product containing the environment (case-sensitive)
2222
required: true
23-
target_env:
23+
target_environment:
2424
description: Target environment for launch files (case-sensitive)
2525
required: true
2626
launch_file1:
@@ -75,16 +75,15 @@ runs:
7575
run: |
7676
# Build the launch files arguments
7777
SOLSTA_EXTRA=""
78-
for i in 1 2 3 4 5 6 7 8 9 10 ; do
79-
VARNAME=${{ iinputs.launch_file ))$i
80-
eval SOLSTA_LAUNCH_ENTRY=${!VARNAME}
81-
if ["$SOLSTA_LAUNCH_ENTRY" != "" ] ; then
78+
for i in '${{ inputs.launch_file1 }}' '${{ inputs.launch_file2 }}' '${{ inputs.launch_file3 }}' '${{ inputs.launch_file4 }}' '${{ inputs.launch_file5 }}' '${{ inputs.launch_file6 }}' '${{ inputs.launch_file7 }}' '${{ inputs.launch_file8 }}' '${{ inputs.launch_file9 }}' '${{ inputs.launch_file10 }}' ; do
79+
if [[ "$i" != "" ]] ; then
80+
eval SOLSTA_LAUNCH_ENTRY=$i
8281
SOLSTA_EXTRA="$SOLSTA_EXTRA --launch_name=\"${SOLSTA_LAUNCH_ENTRY[0]}\" --launch_executable=\"${SOLSTA_LAUNCH_ENTRY[1]}\" --launch_arguments=\"${SOLSTA_LAUNCH_ENTRY[2]}\" "
8382
fi
8483
done
8584
# Run the script that assigns the launch files to the environment
8685
echo extra = $SOLSTA_EXTRA
87-
python manifest.py --debug_network --console_credentials=client_credentials.json --console_directory=solsta_console/${{ inputs.console_version }}/console/ --product_name="${{ inputs.target_product }}" --env_name="${{ inputs.target_env }}" $SOLSTA_EXTRA
86+
eval "python manifest.py --debug_network --console_credentials=client_credentials.json --console_directory=solsta_console/${{ inputs.console_version }}/console/ --product_name=\"${{ inputs.target_product }}\" --env_name=\"${{ inputs.target_environment }}\" --object=launch --task=set $SOLSTA_EXTRA"
8887
8988
branding:
9089
icon: "download-cloud"

0 commit comments

Comments
 (0)