[GH-ISSUE #126] Can't execute actions defined as Dockerfile labels #86

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

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

What happened:

I wanted to use this action in my workflow: https://github.com/marketplace/actions/golang-action
Running it in my workflow with act, I got:

Error: open /home/yanniszark/.cache/act/cedrickring-golang-action@1.5.0/action.yaml: no such file or directory

I also noticed that the action has metadata specified as Dockerfile labels:
github.com/cedrickring/golang-action@cdeafbe2c4/Dockerfile

What I expected to happen:

I expected the workflow to run.

How to reproduce:

Try this workflow with act:

on: push
name: My cool Action
jobs:
  checks:
    name: run
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master

    - name: run
      uses: cedrickring/golang-action@1.5.0
Originally created by @yanniszark on GitHub (Mar 6, 2020). Original GitHub issue: https://github.com/nektos/act/issues/126 **What happened:** I wanted to use this action in my workflow: https://github.com/marketplace/actions/golang-action Running it in my workflow with act, I got: ``` Error: open /home/yanniszark/.cache/act/cedrickring-golang-action@1.5.0/action.yaml: no such file or directory ``` I also noticed that the action has metadata specified as Dockerfile labels: https://github.com/cedrickring/golang-action/blob/cdeafbe2c49ae37107aba9a5c34bfa4eb3b26e98/Dockerfile **What I expected to happen:** I expected the workflow to run. **How to reproduce:** Try this workflow with act: ```yaml on: push name: My cool Action jobs: checks: name: run runs-on: ubuntu-latest steps: - uses: actions/checkout@master - name: run uses: cedrickring/golang-action@1.5.0 ```
kerem 2026-03-01 21:39:58 +03:00
Author
Owner

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

As per the docs for actions:

Docker and JavaScript actions require a metadata file. The metadata filename must be either action.yml or action.yaml.

Seems like GitHub Actions is lenient here and just assuming it's a Docker action?

@cedrickring - any reason you chose to not include an action.yml?

<!-- gh-comment-id:595845283 --> @cplee commented on GitHub (Mar 6, 2020): As per the [docs](https://help.github.com/en/actions/building-actions/metadata-syntax-for-github-actions#about-yaml-syntax-for-github-actions) for actions: > Docker and JavaScript actions require a metadata file. The metadata filename must be either action.yml or action.yaml. Seems like GitHub Actions is lenient here and just assuming it's a Docker action? @cedrickring - any reason you chose to not include an action.yml?
Author
Owner

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

The golang-action is one of the first actions here on GitHub when there was no such thing as an action.yml. That's why it still has all the metadata in its Dockerfiles.

I haven't kept up with the latest changes on the GH-Actions and missed the introduction of the new action.yml repository format and I'm already trying to move away from the old repo format.

For now, I can add an action.yml just so it can run with this tool. 👍

<!-- gh-comment-id:595871617 --> @cedrickring commented on GitHub (Mar 6, 2020): The golang-action is one of the first actions here on GitHub when there was no such thing as an `action.yml`. That's why it still has all the metadata in its Dockerfiles. I haven't kept up with the latest changes on the GH-Actions and missed the introduction of the new `action.yml` repository format and I'm already trying to move away from the old repo format. For now, I can add an `action.yml` just so it can run with this tool. 👍
Author
Owner

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

Thanks to @cedrickring for a quick update on his action! 🙏

<!-- gh-comment-id:595895504 --> @cplee commented on GitHub (Mar 6, 2020): Thanks to @cedrickring for a quick update on his action! 🙏
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#86
No description provided.