-
Notifications
You must be signed in to change notification settings - Fork 97
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
get-latest-tag
action not reporting latest tags correctly
#1119
Comments
The right way to do this is to use the |
@scottwn would this work latest_tag=$(curl -H "Accept: application/vnd.github+json" https://api.github.com/repos/AgnostiqHQ/covalent/tags?per_page=1 | jq -r '.[0].name') |
instead of covalent/.github/workflows/changelog.yml Lines 62 to 70 in cdc6c45
|
We may be able to stick with |
Summary of how this bug arose:
|
This PR should handle things better. |
Environment
Github action:
actions-ecosystem/action-get-latest-tag@v1
What is happening?
the
actions-ecosystem/action-get-latest-tag@v1
action at times yields the latest tag incorrectly (see the upstream issue actions-ecosystem/action-get-latest-tag#13).For
covalent
, this mean sometime thechangelog.yml
get the incorrect latest git tag that causes further issues downstream when pushing the changes tomain
.How can we reproduce the issue?
Happens occasionally, when merging a PR into develop that subsequently causes a merge to master
What should happen?
push_to_master
step must failAny suggestions?
Do not use the
get-latest-tag@v1
action instead revert to using the git commandgit describe --abbrev=0
The text was updated successfully, but these errors were encountered: