dawidd6 / action-homebrew-bump-formula

:gear: A GitHub Action to easily bump Homebrew formula on new release
MIT License
97 stars 26 forks source link

GitHub::API::AuthenticationFailedError #44

Closed deadc0de6 closed 2 years ago

deadc0de6 commented 2 years ago

Hello, I'm not sure what I'm doing wrong. Thanks for your help!

Screenshot 2022-06-26 at 21 17 02

Here's my Personal access tokens:

Screenshot 2022-06-26 at 21 17 23

Here's my action:

name: Release to Homebrew
on:
  release:
    types: [created]
jobs:
  homebrew-core:
    runs-on: macos-latest
    steps:
    - uses: dawidd6/action-homebrew-bump-formula@v3
      with:
        token: ${{secrets.HOMEBREW_FORMULA_GH_TOKEN}}
        formula: dotdrop
dawidd6 commented 2 years ago

Could you switch to ubuntu-latest runner and try again?

deadc0de6 commented 2 years ago

I did, same kind of error

Screenshot 2022-06-26 at 22 43 31
dawidd6 commented 2 years ago

Maybe a weird question but have you added the token to repository secrets?

deadc0de6 commented 2 years ago

:no_mouth: that's embarassing, no I hadn't, that fixed it. Sorry for the noise and thanks for your help!