From fe8bdc79cf68c98ffad3fb1a1317f4eb89b771bb Mon Sep 17 00:00:00 2001 From: Yanli Date: Tue, 25 Jun 2024 17:12:10 +0800 Subject: [PATCH] modify action file --- .github/workflows/build-docker.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 0dc4ec25..8d70902a 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -23,9 +23,15 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: change-string-case + uses: ASzc/change-string-case-action@v1 + with: + string: {{ github.repository }} + case: lowercase + - name: Build Docker image uses: docker/build-push-action@v6 with: context: . push: true - tags: ghcr.io/${{ github.actor }}/${{ github.repository }}:${{ inputs.version }} \ No newline at end of file + tags: ghcr.io/{{ steps.change-string-case.outputs.lowercase }}:${{ inputs.version }} \ No newline at end of file