From 07f602a9b6046b28023847a1f7e515b99d16aba7 Mon Sep 17 00:00:00 2001 From: Yanli Date: Tue, 25 Jun 2024 17:20:12 +0800 Subject: [PATCH] update action file --- .github/workflows/build-docker.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index bd335e5f..9794219a 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -24,14 +24,13 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: change-string-case - uses: ASzc/change-string-case-action@v1 - with: - string: "${{ github.repository }}" - case: lowercase + run: | + my_string="${{ github.repository }}" + echo "REPO=lowercase_string::${my_string,,}" >> $GITHUB_ENV - name: Build Docker image uses: docker/build-push-action@v6 with: context: . push: true - tags: ghcr.io/{{ steps.change-string-case.outputs.lowercase }}:${{ inputs.version }} \ No newline at end of file + tags: ghcr.io/$REPO:${{ inputs.version }} \ No newline at end of file