diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index be04075e..088a6ba5 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -28,7 +28,8 @@ jobs: - name: 🏷️ Get tag id: tag - run: echo "tag=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT + run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT + - name: 🔑 Login Docker run: docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index 62974b16..6b06dbda 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -28,7 +28,7 @@ jobs: - name: 🏷️ Get tag id: tag - run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT + run: echo "tag=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT - name: 🔑 Login Docker run: docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }}