Description:
After upgrading to v5.0.0 and changing the labeler configuration file matching to what is outlined in the documentation, I'm receiving the following error as soon as the action starts
Run actions/labeler@v5.0.0
The configuration file (path: .github/labeler.yml) was not found locally, fetching via the api
Error: Error: found unexpected type for label 'terraform' (should be array of config options)
Error: found unexpected type for label 'terraform' (should be array of config options)
Action version:
5.0.0
Platform:
Runner type:
Repro steps:
After upgrading to 5.0.0 changed the labeler configuration to
terraform:
- changed-files:
- any-glob-to-any-file: terraform/**
which to me looks similar to the example from the documentation
Documentation:
- changed-files:
- any-glob-to-any-file: docs/*
The workflow is defined as follows and used to work previously
---
name: Pull Request Labeler
on:
pull_request_target:
jobs:
triage:
name: Label triage
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-22.04
steps:
- uses: actions/labeler@v5.0.0
with:
sync-labels: true
Expected behavior:
The action should run successfully.
Actual behavior:
The action is failing with the error provided above.
Description:
After upgrading to v5.0.0 and changing the labeler configuration file matching to what is outlined in the documentation, I'm receiving the following error as soon as the action starts
Action version:
5.0.0
Platform:
Runner type:
Repro steps:
After upgrading to 5.0.0 changed the labeler configuration to
which to me looks similar to the example from the documentation
The workflow is defined as follows and used to work previously
Expected behavior:
The action should run successfully.
Actual behavior:
The action is failing with the error provided above.