IvanFon / super-labeler-action

A superpowered issue and pull request labeler for Github Actions.
GNU General Public License v3.0
22 stars 12 forks source link

Input required and not supplied: github-token #29

Open codeuniquely opened 3 years ago

codeuniquely commented 3 years ago

Describe the bug when running the example given in the docs, in ACT, it generates the error

To Reproduce Steps to reproduce the behavior:

  1. used the workflow and actions from this website
  2. run the workflow with act pull_request

Expected behavior Should not error

Config

{
  "labels": {
    "bugfix": {
      "name": "Bugfix! ๐ŸŽ‰",
      "colour": "ff0000",
      "description": "Fixes a bug."
    }
  }
}
name: Pull Request Labeler
on:
  issues: [opened, edited, closed, reopened]
  pull_request:
    types: [opened, edited, closed, reopened, ready_for_review, synchronize]

jobs:
  label:
    runs-on: ubuntu-latest
    name: Label issues and pull requests
    steps:
      - uses: actions/checkout@v2
      - uses: IvanFon/super-labeler-action@v1
        with:
          github-token: '${{ secrets.GITHUB_TOKEN }}'

also tried

          github-token: ${{ secrets.GITHUB_TOKEN }}

Github Actions Output

[Pull Request Labeler/label-things] ๐Ÿงช  Matrix: map[node-version:14.15.3 platform:ubuntu-18.04]
[Pull Request Labeler/label-things] ๐Ÿš€  Start image=node:12.6-buster-slim
[Pull Request Labeler/label-things]   ๐Ÿณ  docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Pull Request Labeler/label-things]   ๐Ÿณ  docker cp src=/Users/steve/Projects/OPLO/. dst=/github/workspace
[Pull Request Labeler/label-things] โญ  Run actions/checkout@v2
[Pull Request Labeler/label-things]   โœ…  Success - actions/checkout@v2
[Pull Request Labeler/label-things] โญ  Run IvanFon/super-labeler-action@v1
[Pull Request Labeler/label-things]   โ˜  git clone 'https://github.com/IvanFon/super-labeler-action' # ref=v1
[Pull Request Labeler/label-things]   ๐Ÿณ  docker cp src=/Users/steve/.cache/act/IvanFon-super-labeler-action@v1 dst=/actions/
[Pull Request Labeler/label-things]   โ—  ::error::Input required and not supplied: github-token
[Pull Request Labeler/label-things]   โ—  ::error::Input required and not supplied: github-token
[Pull Request Labeler/label-things]   โŒ  Failure - IvanFon/super-labeler-action@v1
Error: exit with `FAILURE`: 1
TGTGamer commented 3 years ago

@codeuniquely welcome to this repository, thank you for showing interest. We at @videndum experienced similar issues a good few months ago and started working on a new branch addressing the issues.

To my knowledge this repository has since been marked as achieve and meanwhile we are still maintaining and adding features to our version over on #24

Please give give our fork a try and let us know if you run into any issues.