[GH-ISSUE #128] Running an action in its own repository results in an empty action name #88

Closed
opened 2026-03-01 21:39:59 +03:00 by kerem · 4 comments
Owner

Originally created by @cedrickring on GitHub (Mar 6, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/128

act Version: 0.2.5
OS: macOS & Windows 10

When starting act in cedrickring/golang-action the Docker build fails with Error: invalid reference format (Command: docker build -t act-:latest <workdir>).

On this line the action name is becoming an empty string.

Steps to reproduce

  1. Clone cedrickring/golang-action
  2. Enter the repostory directory
  3. Run act
Originally created by @cedrickring on GitHub (Mar 6, 2020). Original GitHub issue: https://github.com/nektos/act/issues/128 act Version: 0.2.5 OS: macOS & Windows 10 When starting act in [cedrickring/golang-action](https://github.com/cedrickring/golang-action) the Docker build fails with `Error: invalid reference format` (Command: `docker build -t act-:latest <workdir>`). On [this line](https://github.com/nektos/act/blob/1f9f3b826e9cf56ddbfb4ad0c796b5a4da4b32a1/pkg/runner/step_context.go#L244) the action name is becoming an empty string. ### Steps to reproduce 1. Clone [cedrickring/golang-action](https://github.com/cedrickring/golang-action) 2. Enter the repostory directory 3. Run `act`
kerem 2026-03-01 21:39:59 +03:00
Author
Owner

@cplee commented on GitHub (Mar 6, 2020):

Hey @cedrickring - i don't see that branch, can you push it up?

<!-- gh-comment-id:595889079 --> @cplee commented on GitHub (Mar 6, 2020): Hey @cedrickring - i don't see that branch, can you push it up?
Author
Owner

@cedrickring commented on GitHub (Mar 6, 2020):

Sorry, it's already merged into master.

<!-- gh-comment-id:595890671 --> @cedrickring commented on GitHub (Mar 6, 2020): Sorry, it's already merged into master.
Author
Owner

@cplee commented on GitHub (Mar 6, 2020):

I see the problem, should be a quick fix in act to support ./ for uses:

https://github.com/cedrickring/golang-action/blob/master/.github/workflows/push.yml#L10

<!-- gh-comment-id:595891637 --> @cplee commented on GitHub (Mar 6, 2020): I see the problem, should be a quick fix in act to support `./` for uses: https://github.com/cedrickring/golang-action/blob/master/.github/workflows/push.yml#L10
Author
Owner

@cplee commented on GitHub (Mar 6, 2020):

fixed on master. will cut a new release later today.

<!-- gh-comment-id:595895147 --> @cplee commented on GitHub (Mar 6, 2020): fixed on `master`. will cut a new release later today.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#88
No description provided.