-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First Release Error #100
Comments
- name: Generate changelog
id: changelog
uses: jaywcjlove/changelog-generator@main
+ if: env.previous_tag
with:
token: ${{ secrets.GITHUB_TOKEN }} This can solve the problem? @patrickleet |
yea, with the previous_tag step that sets it to "" or the previous tag - if it's "", then that will evaluate to false, so it won't run in that case |
jaywcjlove
added a commit
that referenced
this issue
Nov 19, 2022
@patrickleet thx! |
jaywcjlove
added a commit
to jaywcjlove/create-tag-action
that referenced
this issue
Nov 19, 2022
github-actions bot
pushed a commit
to jaywcjlove/create-tag-action
that referenced
this issue
Nov 19, 2022
I trimmed the step that creates
This is also required for the workaround to work, otherwise it will never run |
@patrickleet thx! |
jaywcjlove
added a commit
to jaywcjlove/github-actions
that referenced
this issue
Nov 20, 2022
jaywcjlove
referenced
this issue
in jaywcjlove/create-tag-action
Nov 20, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When add this action to a repo that has no releases yet, it throws an error.
Maybe it should just generate and empty changelog? Or a message "First release".
I am using this as a workaround to conditionally run the step only if previous tags exist via
if: env.previous_tag
:The text was updated successfully, but these errors were encountered: