Skip to content
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

Merged
merged 1 commit into from
Oct 1, 2021
Merged

Conversation

ibexa-yuna
Copy link
Contributor

No description provided.

- 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')
Copy link
Contributor Author

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 }}
Copy link
Contributor Author

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 }}
Copy link
Contributor Author

@ibexa-yuna ibexa-yuna Oct 1, 2021

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.

@ibexa-yuna ibexa-yuna merged commit 93fed5e into master Oct 1, 2021
@ibexa-yuna ibexa-yuna deleted the alpha-release branch October 1, 2021 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants