Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
moomiji committed Jun 21, 2024
1 parent 0ed5f9c commit 31ca8b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,17 @@ runs:
docker pull $ddtv_deps_image_tag || true
ddtv_date="$(docker inspect $ddtv_deps_image_tag | jq '. + [{"Created":"1970-01-01T08:00:00"}]')"
echo 1
ddtv_date="$(echo "$ddtv_date" | jq -r '.[0] | .Created')"
echo 2
ddtv_date=$(date -d "$ddtv_date" +%s)
echo 3
mcr__date="$(curl https://mcr.microsoft.com/api/v1/catalog/dotnet/runtime-deps/tags | jq -r '.[] | select(.name == "8.0" ) | .lastModifiedDate')"
echo 4
mcr__date=$(date -d "$mcr__date" +%s)
echo 5
file_date=$(cat ${{ github.action_path }}/ddtv/deps/lastModifiedDate)
echo 6
file_date=$(date -d "$file_date" +%s)
echo "ddtv_date: $ddtv_date; mcr__date: $mcr__date; file_date: $file_date"
if [[ "$ddtv_date" -lt "$mcr__date" || "$ddtv_date" -lt "$file_date" ]]; then
Expand Down

0 comments on commit 31ca8b3

Please sign in to comment.