Skip to content

> keep getting the following error #2

@Imtiyaz40

Description

@Imtiyaz40

keep getting the following error

GITHUB_EVENT_PATH /github/workflow/event.json does not exist
GITHUB_EVENT_PATH /github/workflow/event.json does not exist
Could not get pull request number from context, exiting

with the following workflow

name: "PR Labeler"
on:
  - pull_request_target

jobs:
  triage:
    permissions:
      contents: read
      pull-requests: write
    runs-on: self-hosted
    container: ubuntu:latest
    steps:
      - uses: actions/labeler@main
        with:
          repo-token: "${{ secrets.GITHUB_TOKEN }}"

any idea?
If your issue is relevant to this repository, please delete this text and continue to create this issue. Thank you in advance.

Originally posted by @Imtiyaz40 in actions/labeler#346 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions