Add humanize for relative times

This commit is contained in:
2025-03-18 17:00:36 -04:00
parent 87a205ae74
commit 823511e714
5 changed files with 23 additions and 21 deletions

View File

@@ -15,22 +15,8 @@ jobs:
id: prep
run: |
IMAGE_NAME=ghcr.io/${{ github.repository_owner }}/rfd-notify
VERSION=${GITHUB_REF##*/}
if [[ $GITHUB_REF == refs/heads/main ]]; then
VERSION=1
fi
if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF#refs/tags/v}
fi
VERSION=2
TAGS="${IMAGE_NAME}:${VERSION}"
if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
TAGS="$TAGS,${IMAGE_NAME}:2"
fi
echo ::set-output name=tags::${TAGS}
- name: Set up Docker Buildx