diff --git a/.github/workflows/autogpt-docker-release.yml b/.github/workflows/autogpt-docker-release.yml index e107bd2d..4213c78b 100644 --- a/.github/workflows/autogpt-docker-release.yml +++ b/.github/workflows/autogpt-docker-release.yml @@ -38,7 +38,9 @@ jobs: # slashes are not allowed in image tags, but can appear in git branch or tag names - id: sanitize_tag name: Sanitize image tag - run: echo tag=${${raw_tag//\//-}/autogpt-/} >> $GITHUB_OUTPUT + run: | + tag=${raw_tag//\//-} + echo tag=${tag#autogpt-} >> $GITHUB_OUTPUT env: raw_tag: ${{ github.ref_name }}