Closed DavidCannon closed 3 years ago
@rhysd Just wanted to make sure this reached you. Thanks for any help you can give to make this work.
Hey @DavidCannon, I was facing the same issue, same settings. I found a way to fix it with the following action. No need to setup a personal access token in my case. Hope it will work for you:
- uses: rhysd/changelog-from-release/action@v2
with:
file: CHANGELOG.md
github-token: ${{ secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
@rhysd this is a workaround as this generates the following warning:
Unexpected input(s) 'GITHUB_TOKEN', valid inputs are ['entryPoint', 'args', 'github-token', 'file', 'version', 'commit', 'push']
Hope that helps.
Hey @DavidCannon, I was facing the same issue, same settings. I found a way to fix it with the following action. No need to setup a personal access token in my case. Hope it will work for you:
Brilliant! That workaround fixed it. Thank you so much, @bnzo! π―π₯
https://github.com/rhysd/changelog-from-release/blob/master/action/entrypoint.sh#L26
The line is here. I thought github-token
input is mapped to INPUT_GITHUB_TOKEN
env var, but I might misunderstand. I'll check behavior of input in GitHub's documentation.
Ah, I see, spaces in input names are replaced with _
but -
is not.
https://github.com/rhysd/changelog-from-release/runs/1970182350?check_suite_focus=true#step:3:92
INPUT_GITHUB-TOKEN=***
From documentation https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions,
The environment variable created converts input names to uppercase letters and replaces spaces with _ characters.
~8fda90b~d61c92e fixed this issue and I release new version ~v2.2.1~v2.2.2. Using rhysd/changelog-from-release/action@v2
now should work fine.
I confirmed the fix works fine:
Not sure if this comment was being seen on a closed issue:
https://github.com/rhysd/changelog-from-release/issues/1
I'm experiencing the same error as the OP when trying to use your tool as a GitHub Action on my private repo. I've setup a personal access token with repo permissions. I then added a new secret in my repo settings titled 'secrets.ACTIONS_TOKEN' with that personal access token as the value. But when I post a release and the action runs, it fails on this step:
Run rhysd/changelog-from-release/action@v2
With the following...
Any help you can give would be greatly appreciated. Your action is exactly what I was wanting, if I can just get it to work. π
Originally posted by @DavidCannon in https://github.com/rhysd/changelog-from-release/issues/1#issuecomment-782348173