@@ -29,32 +29,32 @@ runs:
2929 # Validate arguments
3030 # set -x
3131
32- if [[ ! "${{inputs.version}}" =~ ^([0-9]+)\.([0-9]+)\.([0-9]+)$ ]] && \
33- [[ "${{inputs.version}}" != "release" ]]; then
32+ if [[ ! "${{ inputs.version }}" =~ ^([0-9]+)\.([0-9]+)\.([0-9]+)$ ]] && \
33+ [[ "${{ inputs.version }}" != "release" ]]; then
3434 echo \
3535 "Error: Invalid version format" \
36- "('${{inputs.version}}')." \
36+ "('${{ inputs.version }}')." \
3737 "Use semantic versioning (e.g., '7.0.2') or use" \
3838 "'release' to get the latest stable release."
3939
4040 exit 1
4141 fi
4242
43- if [[ "${{inputs.version}}" =~ ^([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then
43+ if [[ "${{ inputs.version }}" =~ ^([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then
4444 major_version="${BASH_REMATCH[1]}"
4545 minor_version="${BASH_REMATCH[2]}"
4646
4747 if (( major_version < 6 )) || \
48- (( major_version == 6 && minor_version < 4 )) ; then
48+ (( major_version == 6 && minor_version < 4 )); then
4949 echo \
5050 "Error: Unsupported NetLogo version" \
51- "('${{inputs.version}}')." \
51+ "('${{ inputs.version }}')." \
5252 "Only versions equal or greater than 6.4.0 are supported."
5353
5454 exit 1
5555 fi
5656
57- if [[ "${{inputs.version}}" == "6.4.0" ]] &&
57+ if [[ "${{ inputs.version }}" == "6.4.0" ]] &&
5858 [[ "${RUNNER_ARCH}" =~ ^(ARM|ARM64)$ ]]; then
5959 echo \
6060 "Error: NetLogo 6.4.0 and earlier versions are not" \
@@ -64,11 +64,11 @@ runs:
6464 fi
6565 fi
6666
67- if [[ "${{inputs.cache}}" != "true" ]] && \
68- [[ "${{inputs.cache}}" != "false" ]]; then
67+ if [[ "${{ inputs.cache }}" != "true" ]] && \
68+ [[ "${{ inputs.cache }}" != "false" ]]; then
6969 echo \
7070 "Error: Invalid cache option" \
71- "('${{inputs.cache}}')." \
71+ "('${{ inputs.cache }}')." \
7272 "Valid options are 'true' or 'false'."
7373
7474 exit 1
8181 # Get NetLogo version
8282 # set -x
8383
84- if [[ "${{inputs.version}}" == "release" ]]; then
84+ if [[ "${{ inputs.version }}" == "release" ]]; then
8585 version_tag=$( \
8686 gh api repos/NetLogo/NetLogo/releases/latest -q .tag_name \
8787 )
9595
9696 NETLOGO_VERSION="${version_tag#v}"
9797 else
98- NETLOGO_VERSION="${{inputs.version}}"
98+ NETLOGO_VERSION="${{ inputs.version }}"
9999 fi
100100
101101 echo "version=${NETLOGO_VERSION}" >> "${GITHUB_OUTPUT}"
@@ -136,8 +136,8 @@ runs:
136136 if : inputs.cache == 'true'
137137 uses : actions/cache@v4
138138 with :
139- path : ${{steps.cache-path.outputs.path}}
140- key : " netlogo-${{steps.netlogo-version.outputs.version}}-${{runner.os}}-${{runner.arch}}"
139+ path : ${{ steps.cache-path.outputs.path }}
140+ key : " netlogo-${{ steps.netlogo-version.outputs.version }}-${{ runner.os }}-${{ runner.arch }}"
141141
142142 - name : Choose correct bundle for OS type
143143 id : netlogo-bundle
@@ -210,7 +210,7 @@ runs:
210210
211211 repo="NetLogo/NetLogo"
212212 tag="v${NETLOGO_VERSION}"
213- extension="${{steps.netlogo-bundle.outputs.extension}}"
213+ extension="${{ steps.netlogo-bundle.outputs.extension }}"
214214
215215 gh release download "$tag" \
216216 --repo "$repo" \
@@ -270,7 +270,7 @@ runs:
270270 # Install NetLogo
271271 # set -x
272272
273- bundle="${{steps.netlogo-download.outputs.bundle}}"
273+ bundle="${{ steps.netlogo-download.outputs.bundle }}"
274274
275275 case ${RUNNER_OS} in
276276 "Linux")
@@ -364,7 +364,7 @@ runs:
364364 # Set environment variables
365365 # set -x
366366
367- bundle="${{steps.netlogo-download.outputs.bundle}}"
367+ bundle="${{ steps.netlogo-download.outputs.bundle }}"
368368
369369 case ${RUNNER_OS} in
370370 "Linux" | "macOS")
0 commit comments