Skip to content

Commit

Permalink
fixed now_epoch
Browse files Browse the repository at this point in the history
  • Loading branch information
glebashnik committed Aug 14, 2024
1 parent d645eb8 commit e1c4c14
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/verify-opensource-release-7days.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@ jobs:
publish-cli-release:
runs-on: ubuntu-latest
steps:
- name: now-epoch
- name: error-if-current-release-too-old
run: |
now_epoch=`date "+%s"`
echo "Now epoch: " $now_epoch
- name: error-if-current-release-too-old
run: |
current_release_date=$(curl -sLf https://repo1.maven.org/maven2/com/yahoo/vespa/cloud-tenant-base/maven-metadata.xml | \
grep -oP "<lastUpdated>\K\w+" | cut -c 1-8)
echo "Current release date: " $current_release_date
Expand All @@ -45,6 +43,9 @@ jobs:
- name: error-if-docker-image-too-old
run: |
now_epoch=`date "+%s"`
echo "Now epoch: " $now_epoch
image_date=$(curl -sLf https://hub.docker.com/v2/repositories/vespaengine/vespa/ | jq -re '.last_updated')
echo "Docker image last_updated: " $image_date
image_epoch=`date -d "$image_date" "+%s"`
Expand Down

0 comments on commit e1c4c14

Please sign in to comment.