Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action fails on new repo #214

Open
3 tasks done
steven-murray opened this issue Jul 24, 2024 · 0 comments
Open
3 tasks done

Action fails on new repo #214

steven-murray opened this issue Jul 24, 2024 · 0 comments

Comments

@steven-murray
Copy link

Support guidelines

I've found a bug and checked that ...

  • ... the documentation does not mention anything about my problem
  • ... there are no open or closed issues that are related to my problem

Description

I am getting an error when running the action on my repo.

Expected behaviour

For it to pass.

Actual behaviour

Fails with the following error:

/home/runner/work/_actions/crazy-max/ghaction-github-labeler/v5.0.0/webpack:/github-labeler/src/labeler.ts:211
            for (const fileLabel of yield this.fileLabels) {
^
TypeError: (intermediate value) is not iterable
    at Labeler.next (/home/runner/work/_actions/crazy-max/ghaction-github-labeler/v5.0.0/webpack:/github-labeler/src/labeler.ts:211:1)
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/work/_actions/crazy-max/ghaction-github-labeler/v5.0.0/webpack:/github-labeler/src/labeler.ts:28:1)

Steps to reproduce

Add labels.yml to .github/ and the attached workflow to .github/workflows/labeler.yml then submit as a PR .

Repository URL

https://github.com/halomod/halomod

Workflow run URL

https://github.com/halomod/halomod/actions/runs/10077254324/job/27859353630?pr=115

YAML workflow

My `labeler.yml` is:


name: Labeler

on: push

jobs:
  labeler:
    runs-on: ubuntu-latest
    permissions:
      issues: write
      content: read

    steps:
      - name: Check out the repository
        uses: actions/checkout@v4

      - name: Run Labeler
        uses: crazy-max/[email protected]
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}

Workflow logs

No response

Additional info

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant