Skip to content

Commit

Permalink
Revert "Update action.yml"
Browse files Browse the repository at this point in the history
This reverts commit 69add94.
  • Loading branch information
moomiji committed Jun 21, 2024
1 parent 69add94 commit 822da77
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,12 @@ runs:
echo "ddtv_deps_image=ghcr.io/$owner_lower/ddtv/deps" >> $GITHUB_ENV
echo "ddtv_deps_image_tag=$ddtv_deps_image_tag" >> $GITHUB_ENV
echo 1
ddtv_date="$(docker pull $ddtv_deps_image_tag && docker inspect $ddtv_deps_image_tag || echo '[{"Created":"1970-01-01T08:00:00"}]')"
echo 2
ddtv_date="$(echo "$ddtv_date" | jq -r '.[0] | .Created')"
echo 3
ddtv_date=$(date -d $ddtv_date +%s)
echo 4
mcr__date="$(curl https://mcr.microsoft.com/api/v1/catalog/dotnet/runtime-deps/tags | jq -r '.[] | select(.name == "8.0" ) | .lastModifiedDate')"
echo 5
mcr__date=$(date -d "$mcr__date" +%s)
echo 6
file_date=$(cat ${{ github.action_path }}/ddtv/deps/lastModifiedDate)
echo 7
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 822da77

Please sign in to comment.