Skip to content

Commit

Permalink
use common date format
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Feb 15, 2024
1 parent 969104d commit 66bc122
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/eventbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Setup env
run: |
echo "DT=$(date +'%Y-%m-%d_%H%M')" >> $GITHUB_ENV
echo "DT=$(date -d '+1 hour' +'%m-%d-%Y--%H-%M-%S')" >> $GITHUB_ENV
echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV

Expand Down Expand Up @@ -232,7 +232,7 @@ jobs:
export FILENAME=${{ env.NAME }}
export DOWNLOADSIZE=$(wc -c *.xz | cut -f 1 -d " ")
export SUM=$(cat sha256)
export RELEASEDATE=$(date +%Y-%m-%d)
export RELEASEDATE=$(date -d '+1 hour' +'%m-%d-%Y--%H-%M-%S')
echo "$NAME" >> ${{ matrix.TARGET }}.txt
echo "$FILESIZE" >> ${{ matrix.TARGET }}.txt
echo "$FILENAME" >> ${{ matrix.TARGET }}.txt
Expand Down Expand Up @@ -313,7 +313,7 @@ jobs:
export FILENAME=${{ env.NAME }}
export DOWNLOADSIZE=$(wc -c *.xz | cut -f 1 -d " ")
export SUM=$(cat sha256)
export RELEASEDATE=$(date +%Y-%m-%d)
export RELEASEDATE=$(date -d '+1 hour' +'%m-%d-%Y--%H-%M-%S')
echo "$NAME" >> ${{ matrix.TARGET }}.txt
echo "$FILESIZE" >> ${{ matrix.TARGET }}.txt
echo "$FILENAME" >> ${{ matrix.TARGET }}.txt
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ if [ -z "${IMG_NAME}" ]; then
fi

# Variables
export IMG_DATE="${IMG_DATE:-"$(date +%Y-%m-%d)"}"
export IMG_DATE="${IMG_DATE:-"$(date -d '+1 hour' +'%m-%d-%Y--%H-%M-%S')"}"

BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
export SCRIPT_DIR="${BASE_DIR}/scripts"
Expand Down

0 comments on commit 66bc122

Please sign in to comment.