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

Update DAI version support 25.1 #37

Open
wants to merge 2 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
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,16 @@ Based on the pipeline .yml configuration, when there is commits or pull request
</thead>
<tbody>
<tr>
<td>7.5.0-10</td>
<td>25.1.0+0</td>
<td><a href="https://github.com/marketplace/actions/eggplant-runner">latest</a></td>
</tr>
<tr>
<td>7.5.0-10</td>
<td><a href="https://github.com/marketplace/actions/eggplant-runner?version=v1.0.15">v1.0.15</a></td>
</tr>
<tr>
<td>7.5.0-9</td>
<td><a href="https://github.com/marketplace/actions/eggplant-runner?version=v1.0.12">v1.0.14</a></td>
<td><a href="https://github.com/marketplace/actions/eggplant-runner?version=v1.0.14">v1.0.14</a></td>
</tr>
<tr>
<td>7.4.0-4</td>
Expand Down
21 changes: 11 additions & 10 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ runs:
echo "DOWNLOAD_URL=https://assets.eggplantsoftware.com/EggplantRunner/$EXE_FILENAME" >> $GITHUB_ENV
shell: bash
env:
DAI_VERSION: 7.5.0-10 # AUB-13519_CICD_Junit_file_implementation
DAI_VERSION: 25.1.0+0 # AUB-13519_CICD_Junit_file_implementation

- name: Fetch CLI
if: ${{ inputs.eggplantRunnerPath }}
Expand All @@ -103,19 +103,20 @@ runs:
filename=$(basename "${{ inputs.eggplantRunnerPath }}")
filename_minor=""
CLI_minor=""
filename_length=${#filename}
CLI_FILENAME_LENGTH=${#CLI_FILENAME}
pattern="eggplant-runner-(Windows|Linux|MacOS)-([0-9]{1,2}\\.[0-9])"

if [ "$CLI_FILENAME_LENGTH" == 30 ]; then
filename_minor=${filename:0:$((filename_length - 5))}
CLI_minor=${CLI_FILENAME:0:$((CLI_FILENAME_LENGTH - 5))}
elif [ "$CLI_FILENAME_LENGTH" == 36 ]; then
filename_minor=${filename:0:$((filename_length - 9))}
CLI_minor=${CLI_FILENAME:0:$((CLI_FILENAME_LENGTH - 9))}
if [[ "$CLI_FILENAME" =~ $pattern ]]; then
CLI_minor="${BASH_REMATCH[0]}"
else
filename_minor=not match
CLI_minor=not correct file format
fi

if [[ "$filename" =~ $pattern ]]; then
filename_minor="${BASH_REMATCH[0]}"
else
filename_minor=not match
fi

if [[ "$filename_minor" != "$CLI_minor" ]]; then
echo "Error: File found is invalid. Required: $CLI_FILENAME. Please download from $DOWNLOAD_URL"; exit 1;
fi
Expand Down
Loading