[GH-ISSUE #246] action.yaml: no such file or directory #166

Closed
opened 2026-03-01 21:40:49 +03:00 by kerem · 16 comments
Owner

Originally created by @oscarmorrison on GitHub (May 18, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/246

my main.yml

name: Update Price
on: push

jobs:
  scrape:

    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [13.x]

    steps:
      - uses: actions/checkout@v2
      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v1.4.2
        with:
          node-version: ${{ matrix.node-version }}
      - name: npm install, build, & run
        run: |
          npm i -g yarn
          yarn install
      - name: Run price check
        uses: ianwalter/puppeteer@cbdd5c50c8d6b6275cdf46e4ad2b3f7ee61211ce
        with:
            args: yarn run update-price
      - name: Deploy to gh-pages
        uses: peaceiris/actions-gh-pages@v3
        with:
            github_token: ${{ secrets.GITHUB_TOKEN }}
            publish_dir: ./data

my .actrc

-P ubuntu-latest=nektos/act-environments-ubuntu:18.04

Getting an error running it

[Update Price]   ❌  Failure - Run price check
Error: open [User directory]/.cache/act/ianwalter-puppeteer@cbdd5c50c8d6b6275cdf46e4ad2b3f7ee61211ce/action.yaml: no such file or directory
Originally created by @oscarmorrison on GitHub (May 18, 2020). Original GitHub issue: https://github.com/nektos/act/issues/246 my main.yml ``` name: Update Price on: push jobs: scrape: runs-on: ubuntu-latest strategy: matrix: node-version: [13.x] steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1.4.2 with: node-version: ${{ matrix.node-version }} - name: npm install, build, & run run: | npm i -g yarn yarn install - name: Run price check uses: ianwalter/puppeteer@cbdd5c50c8d6b6275cdf46e4ad2b3f7ee61211ce with: args: yarn run update-price - name: Deploy to gh-pages uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./data ``` my .actrc ``` -P ubuntu-latest=nektos/act-environments-ubuntu:18.04 ``` Getting an error running it ``` [Update Price] ❌ Failure - Run price check Error: open [User directory]/.cache/act/ianwalter-puppeteer@cbdd5c50c8d6b6275cdf46e4ad2b3f7ee61211ce/action.yaml: no such file or directory ```
Author
Owner

@tobsenll commented on GitHub (May 19, 2020):

I have the same problem when I reference a local DockerAction without an action.yaml but only a Dockerfile.
This is working when running on github but not with act locally.

<!-- gh-comment-id:630857162 --> @tobsenll commented on GitHub (May 19, 2020): I have the same problem when I reference a local DockerAction without an action.yaml but only a Dockerfile. This is working when running on github but not with act locally.
Author
Owner

@stavalfi commented on GitHub (Jun 18, 2020):

@tobsenll @oscarmorrison is there any workaround? i have the same issue when using actions-hub/docker/login@master

<!-- gh-comment-id:646241055 --> @stavalfi commented on GitHub (Jun 18, 2020): @tobsenll @oscarmorrison is there any workaround? i have the same issue when using `actions-hub/docker/login@master`
Author
Owner

@jsoref commented on GitHub (Jun 26, 2020):

@tobsenll / @stavalfi: could you provide a testcase?

I'm using this, but I have no idea if it's representative:

name: Log into Docker
on: push

jobs:
  login:
    runs-on: ubuntu-latest
    steps:
      - name: Trigger docker login
        uses: actions-hub/docker/login@master
<!-- gh-comment-id:649887604 --> @jsoref commented on GitHub (Jun 26, 2020): @tobsenll / @stavalfi: could you provide a testcase? I'm using this, but I have no idea if it's representative: ``` name: Log into Docker on: push jobs: login: runs-on: ubuntu-latest steps: - name: Trigger docker login uses: actions-hub/docker/login@master ```
Author
Owner

@benwinding commented on GitHub (Jul 22, 2020):

Okay, so here's how I got around this error in the using statement:

uses: some/action@master
  • some/action requires the action.yaml file to be included in the action you're referencing more details here. It doesn't work without it.
  • some/action doesn't work with @BRANCH_NAME (even though it works on Github) you need to use one of the following:
    • action@master
    • action@COMMIT_HASH
    • action@TAG_NAME
<!-- gh-comment-id:662237162 --> @benwinding commented on GitHub (Jul 22, 2020): Okay, so here's how I got around this error in the `using` statement: ``` yaml uses: some/action@master ``` - `some/action` requires the `action.yaml` file to be included in the action you're referencing [more details here](https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions). It doesn't work without it. - `some/action` doesn't work with `@BRANCH_NAME` (even though it works on Github) you need to use one of the following: - `action@master` - `action@COMMIT_HASH` - `action@TAG_NAME`
Author
Owner

@jsoref commented on GitHub (Jul 22, 2020):

@benwinding: I suspect the lack of handling for branch name might be handled for nektos/act#62, otherwise, it deserves its own issue.

<!-- gh-comment-id:662402654 --> @jsoref commented on GitHub (Jul 22, 2020): @benwinding: I suspect the lack of handling for branch name might be handled for nektos/act#62, otherwise, it deserves its own issue.
Author
Owner

@maxandersen commented on GitHub (Sep 11, 2020):

I have the same issue in https://github.com/jbangdev/jbang-action I use:

 - name: Login to docker hub
        if: success()
        uses: actions-hub/docker/login@master
        env:
          DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
          DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

and it complains about login/action.yaml not found.

tried grokking what @benwinding suggested in https://github.com/nektos/act/issues/246#issuecomment-662237162 but if one remove actions-hub nothing work ;)

<!-- gh-comment-id:690835272 --> @maxandersen commented on GitHub (Sep 11, 2020): I have the same issue in https://github.com/jbangdev/jbang-action I use: ``` - name: Login to docker hub if: success() uses: actions-hub/docker/login@master env: DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} ``` and it complains about login/action.yaml not found. tried grokking what @benwinding suggested in https://github.com/nektos/act/issues/246#issuecomment-662237162 but if one remove `actions-hub` nothing work ;)
Author
Owner

@github-actions[bot] commented on GitHub (Nov 11, 2020):

Issue is stale and will be closed in 7 days unless there is new activity

<!-- gh-comment-id:725045877 --> @github-actions[bot] commented on GitHub (Nov 11, 2020): Issue is stale and will be closed in 7 days unless there is new activity
Author
Owner

@jsoref commented on GitHub (Nov 11, 2020):

This issue is almost certainly still valid (I'm not a fan of that bot)

<!-- gh-comment-id:725050148 --> @jsoref commented on GitHub (Nov 11, 2020): This issue is almost certainly still valid (I'm not a fan of that bot)
Author
Owner

@github-actions[bot] commented on GitHub (Jan 11, 2021):

Issue is stale and will be closed in 7 days unless there is new activity

<!-- gh-comment-id:757574829 --> @github-actions[bot] commented on GitHub (Jan 11, 2021): Issue is stale and will be closed in 7 days unless there is new activity
Author
Owner

@jsoref commented on GitHub (Jan 11, 2021):

Bad bot

<!-- gh-comment-id:757575588 --> @jsoref commented on GitHub (Jan 11, 2021): Bad bot
Author
Owner

@ibraheeamm commented on GitHub (Jan 18, 2021):

Hey

I am also facing the same issue with this https://github.com/devmasx/brakeman-linter-action

Thanks

<!-- gh-comment-id:762415222 --> @ibraheeamm commented on GitHub (Jan 18, 2021): Hey I am also facing the same issue with this [https://github.com/devmasx/brakeman-linter-action](action) Thanks
Author
Owner

@github-actions[bot] commented on GitHub (Feb 18, 2021):

Issue is stale and will be closed in 14 days unless there is new activity

<!-- gh-comment-id:780943691 --> @github-actions[bot] commented on GitHub (Feb 18, 2021): Issue is stale and will be closed in 14 days unless there is new activity
Author
Owner

@rickstaa commented on GitHub (Feb 23, 2021):

@github-actions bot I think this is still relevant.

<!-- gh-comment-id:784365621 --> @rickstaa commented on GitHub (Feb 23, 2021): @github-actions bot I think this is still relevant.
Author
Owner

@github-actions[bot] commented on GitHub (Mar 26, 2021):

Issue is stale and will be closed in 14 days unless there is new activity

<!-- gh-comment-id:807827912 --> @github-actions[bot] commented on GitHub (Mar 26, 2021): Issue is stale and will be closed in 14 days unless there is new activity
Author
Owner

@jsoref commented on GitHub (Mar 26, 2021):

Bad bot

<!-- gh-comment-id:807864209 --> @jsoref commented on GitHub (Mar 26, 2021): Bad bot
Author
Owner

@catthehacker commented on GitHub (Apr 2, 2021):

Fixed by #293

<!-- gh-comment-id:812440949 --> @catthehacker commented on GitHub (Apr 2, 2021): Fixed by #293
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#166
No description provided.