1
0
Fork 0
mirror of https://github.com/actions/checkout.git synced 2025-03-28 11:00:05 +01:00

Format timestamp with four-digit year

This commit is contained in:
John Wesley Walker III 2024-02-20 20:45:05 +01:00 committed by GitHub
parent d586cd8194
commit c5b558b9fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,7 +40,7 @@ jobs:
- name: Format Timestamp
id: timestamp
# Use `date` with a custom format to achieve the key=value format GITHUB_OUTPUT expects.
run: date -u "+now=%y%m%d.%H%M%S.%3NZ" >> "$GITHUB_OUTPUT"
run: date -u "+now=%Y%m%d.%H%M%S.%3NZ" >> "$GITHUB_OUTPUT"
# Use `docker/build-push-action` to build (and optionally publish) the image.
- name: Build and push Docker image