squalrus / merge-bot

A GitHub action that manages pull request integrations
MIT License
70 stars 12 forks source link

##[warning]Unexpected input 'GITHUB_TOKEN' #28

Closed IgnusG closed 4 years ago

IgnusG commented 4 years ago

Describe the bug The GITHUB_TOKEN is not recognized as input.

To Reproduce Steps to reproduce the behavior:

  1. Use action
  2. Set:
    - uses: squalrus/merge-bot@v0.4.1
    with:
      GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
      method: merge
      labels: version-ready

Expected behavior Uses GITHUB_TOKEN as auth.

Screenshots image

The input is being read here: https://github.com/squalrus/merge-bot/blob/1083cc7ea933ace2ec2baa32deccb3461da88f8f/index.js#L19

But needs to be specified in action.yml for github to recognize it here: https://github.com/squalrus/merge-bot/blob/1083cc7ea933ace2ec2baa32deccb3461da88f8f/action.yml#L7-L30

squalrus commented 4 years ago

Thank you for adding! 🙌