From a49fa34285c9b6ed826ab6501fcb24c24fda6dbb Mon Sep 17 00:00:00 2001 From: Sam Lin <456807+maxisam@users.noreply.github.com.> Date: Thu, 21 Nov 2024 22:43:25 -0600 Subject: [PATCH] fix: update environment variable syntax and default version in workflows --- .github/workflows/build.yml | 4 +++- .github/workflows/release.yml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fb9679d..edb2492 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -67,7 +67,9 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Set current date as env variable - run: echo "NOW=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV + run: | + echo "NOW=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> ${GITHUB_ENV} + echo "${{ env.DOCKER_REPOSITORY}}" - name: Login to DockerHub if: github.event_name == 'workflow_dispatch' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 33337c5..fbf4e9e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,7 @@ on: version: type: string description: Version - default: 2.0 + default: "2.0" required: false jobs: