-
Notifications
You must be signed in to change notification settings - Fork 1
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
[NO JIRA] Update changelog generator workflow #12
Conversation
- name: Get previous last full release | ||
id: prevfull | ||
run: | | ||
OUT=$(hub api /repos/${{ github.repository }}/releases | jq -r -s '[ .[][].tag_name | select(. | contains("rc") or contains("beta") or contains("alpha") | not) ] | first') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ATM this will give back v3.3.9
- name: Get previous release tag based on type | ||
id: prevrelease | ||
uses: ibexa/version-logic-action@master | ||
with: | ||
currentTag: ${{ env.BUILD_TAG }} | ||
prevFullTag: ${{ steps.prevfull.outputs.tag }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given the input v3.3.9
, action output is expected to be v3.3.0
.
Considering tests have passed, specifically the alphatest1
and corresponding assert are ok - this should be fine.
echo "::set-output name=tag::$( echo "$OUT" | sed ':a;N;$!ba;s/\n/%0A/g' )" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Get previous release tag based on type | ||
id: prevrelease | ||
uses: ibexa/version-logic-action@master | ||
with: | ||
currentTag: ${{ env.BUILD_TAG }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given the input v4.0.0-alpha1
, with the change from below - this should yield a proper version to compare against.
No description provided.