File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,13 @@ runs:
36
36
if [[ "${{inputs.version}}" == "latest" ]]; then
37
37
ESMF_API_URL="https://api.github.com/repos/esmf-org/esmf/releases/latest"
38
38
curl --silent -L "${ESMF_API_URL}" > ${{runner.temp}}/.esmf-gh.info
39
- ESMF_VERSION=`cat ${{runner.temp}}/.esmf-gh.info | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'`
39
+ ESMF_VERSION=`cat ${{runner.temp}}/.esmf-gh.info | grep '^ "tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'`
40
40
rm -f ${{runner.temp}}/.esmf-gh.info
41
41
ESMF_URL="https://github.com/esmf-org/esmf/archive/refs/tags/${ESMF_VERSION}.tar.gz"
42
42
elif [[ "${{inputs.version}}" == "develop" ]]; then
43
- ESMF_API_URL="https://api.github.com/repos/esmf-org/esmf/commits /develop"
43
+ ESMF_API_URL="https://api.github.com/repos/esmf-org/esmf/branches /develop?page=1 "
44
44
curl --silent -L "${ESMF_API_URL}" > ${{runner.temp}}/.esmf-gh.info
45
- ESMF_COMMIT=`cat ${{runner.temp}}/.esmf-gh.info | grep -m1 ' "sha":' | sed -E 's/.*"([^"]+)".*/\1/'`
45
+ ESMF_COMMIT=`cat ${{runner.temp}}/.esmf-gh.info | grep '^ "sha":' | sed -E 's/.*"([^"]+)".*/\1/'`
46
46
rm -f ${{runner.temp}}/.esmf-gh.info
47
47
ESMF_URL="https://github.com/esmf-org/esmf/archive/${ESMF_COMMIT}.tar.gz"
48
48
ESMF_VERSION="develop"
You can’t perform that action at this time.
0 commit comments