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

The configuration file (path: .github/labeler.yml) was not found locally, fetching via the api #814

Open
2 of 5 tasks
mohamedfarees opened this issue Oct 23, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@mohamedfarees
Copy link

Description:
We have upgraded to labeler 5. I have .github/labeler.yml file and .github/workflows/labeler.yml. The action we are using github provided micorsoft
For all the PR I can see the action and successful but for some PR, upon success im getting this error and labels are not applied

Run actions/labeler@v5
with:
repo-token: ***
configuration-path: .github/labeler.yml
sync-labels: false
dot: true
The configuration file (path: .github/labeler.yml) was not found locally, fetching via the api

2024-10-23T09:26:33.9375145Z Current runner version: '2.320.0'
2024-10-23T09:26:33.9400143Z ##[group]Operating System
2024-10-23T09:26:33.9401212Z Ubuntu
2024-10-23T09:26:33.9401923Z 22.04.5
2024-10-23T09:26:33.9402517Z LTS
2024-10-23T09:26:33.9403130Z ##[endgroup]
2024-10-23T09:26:33.9403997Z ##[group]Runner Image
2024-10-23T09:26:33.9404815Z Image: ubuntu-22.04
2024-10-23T09:26:33.9405538Z Version: 20241015.1.0
2024-10-23T09:26:33.9407289Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20241015.1/images/ubuntu/Ubuntu2204-Readme.md
2024-10-23T09:26:33.9409717Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20241015.1
2024-10-23T09:26:33.9411261Z ##[endgroup]
2024-10-23T09:26:33.9412094Z ##[group]Runner Image Provisioner
2024-10-23T09:26:33.9413014Z 2.0.384.1
2024-10-23T09:26:33.9413684Z ##[endgroup]
2024-10-23T09:26:33.9435157Z ##[group]GITHUB_TOKEN Permissions
2024-10-23T09:26:33.9437363Z Contents: read
2024-10-23T09:26:33.9437792Z Metadata: read
2024-10-23T09:26:33.9438447Z PullRequests: write
2024-10-23T09:26:33.9438945Z ##[endgroup]
2024-10-23T09:26:33.9441308Z Secret source: Actions
2024-10-23T09:26:33.9441999Z Prepare workflow directory
2024-10-23T09:26:34.0061199Z Prepare all required actions
2024-10-23T09:26:34.0215598Z Getting action download info
2024-10-23T09:26:34.1825394Z Download action repository 'actions/labeler@v5' (SHA:generated)
2024-10-23T09:26:34.7233937Z Complete job name: triage
2024-10-23T09:26:34.8077410Z ##[group]Run actions/labeler@v5
2024-10-23T09:26:34.8078008Z with:
2024-10-23T09:26:34.8078604Z   repo-token: ***
2024-10-23T09:26:34.8079486Z   configuration-path: .github/labeler.yml
2024-10-23T09:26:34.8080090Z   sync-labels: false
2024-10-23T09:26:34.8080483Z   dot: true
2024-10-23T09:26:34.8080928Z ##[endgroup]
2024-10-23T09:26:35.9131231Z The configuration file (path: .github/labeler.yml) was not found locally, fetching via the api
2024-10-23T09:26:36.1366726Z Cleaning up orphan processes

The .github/labeler.yml file

only-tests:
  - any:
      - changed-files:
          - any-glob-to-any-file: "tests/*"

api:
  - any:
      - changed-files:
          - any-glob-to-any-file: "src/api/*"

web-apps:
  - any:
      - changed-files:
          - any-glob-to-any-file: "src/web/*"

admin-apps:
  - any:
      - changed-files:
          - any-glob-to-any-file: "src/admin/*"

github-workflows:
  - any:
      - changed-files:
          - any-glob-to-any-file: ".github/*"

infrastructure:
  - any:
      - changed-files:
          - any-glob-to-any-file: "infra/*"

repo-config:
  - any:
      - changed-files:
          - any-glob-to-any-file: "*"

dashboard:
  - any:
      - changed-files:
          - any-glob-to-any-file: "src/notebooks/*"

Action version:
Specify the action version

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:
Make change in any mentioned folder and raise PR in default branch where PR is merged in some cases we can see its not populating

Expected behavior:
Labels should populate as per above config all the time

Actual behavior:
Labels are working rarely and most cases getting above error, eventhough file is present it is not recognizing

@mohamedfarees mohamedfarees added bug Something isn't working needs triage labels Oct 23, 2024
@priyagupta108
Copy link

Hi @mohamedfarees 👋,
Thank you for your report. We'll investigate the issue and get back to you with the details!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants