Using format expression for "uses" value?

In my workflow file, I have a step like below:

      - name: Semantic Release
        uses: ${{ format('docker://{0}', github.repository) }}
        with:
          args: -r yes -w yes

Basically I’m trying to format a string into docker://<image-name> based on what the GitHub repo’s owner/name is.

But I get this error:

The workflow is not valid. .github/workflows/ci.yml (Line: 72, Col: 15): Unrecognized named-value: 'github'. Located at position 24 within expression: format('docker://{0}', github.repository)

Is it even possible to do what I’m trying to do? I’ve also tried just:

      - name: Semantic Release
        uses: docker://${{ github.repository) }}
        with:
          args: -r yes -w yes

But same result.

The uses value cannot be set dynamically:

1 Like

I see! Thanks for the reply.