Skip to content

Commit bcb0f12

Browse files
committed
Fix pipeline failure for ESMF COMMIT
1 parent 7b810c1 commit bcb0f12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ runs:
3636
if [[ "${{inputs.version}}" == "latest" ]]; then
3737
ESMF_API_URL="https://api.github.com/repos/esmf-org/esmf/releases/latest"
3838
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/'`
4040
rm -f ${{runner.temp}}/.esmf-gh.info
4141
ESMF_URL="https://github.com/esmf-org/esmf/archive/refs/tags/${ESMF_VERSION}.tar.gz"
4242
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"
4444
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/'`
4646
rm -f ${{runner.temp}}/.esmf-gh.info
4747
ESMF_URL="https://github.com/esmf-org/esmf/archive/${ESMF_COMMIT}.tar.gz"
4848
ESMF_VERSION="develop"

0 commit comments

Comments
 (0)