-
Notifications
You must be signed in to change notification settings - Fork 140
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
chore: get_all_manifests.sh: support tags and make it priority #1194
chore: get_all_manifests.sh: support tags and make it priority #1194
Conversation
4921fb0
to
ad65664
Compare
@ykaliuta Can you add |
ad65664
to
c7fdf46
Compare
yes. But I'm wondering, how it helps? |
+1 from me |
get_all_manifests.sh
Outdated
if ! $git_fetch refs/tags/$ref 2>/dev/null ; then | ||
$git_fetch refs/heads/$ref | ||
fi | ||
git reset --hard FETCH_HEAD |
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.
git reset --hard FETCH_HEAD | |
git reset -q --hard FETCH_HEAD |
to suspend checkout commit
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.
to suspend checkout commit
As you wish :)
Jira: https://issues.redhat.com/browse/RHOAIENG-11687 Current script is supposed to be used with branches since it uses "git clone -b" while preparing tagged releases it is useful to fetch tags. "git clone -b" can work with tags as well, but if the same name branch exists it fetches the branch which is not desireable behaviour if tagged release is being produced. Try to fetch tag. If it fails fallback to branch. GitHub discussion: opendatahub-io#1169 (comment) Signed-off-by: Yauheni Kaliuta <[email protected]>
c7fdf46
to
512ab4b
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: zdtsw The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@ykaliuta Thanks for tagging me. I didn't know the tags would be used back when writing the script (or adjusting the existing one), so I'm happy it has been improved. Pinned versions should help in some weird errors I've seen in the past with misaligned "release" branches. |
d2caf7a
into
opendatahub-io:incubation
…atahub-io#1194) Jira: https://issues.redhat.com/browse/RHOAIENG-11687 Current script is supposed to be used with branches since it uses "git clone -b" while preparing tagged releases it is useful to fetch tags. "git clone -b" can work with tags as well, but if the same name branch exists it fetches the branch which is not desireable behaviour if tagged release is being produced. Try to fetch tag. If it fails fallback to branch. GitHub discussion: opendatahub-io#1169 (comment) Signed-off-by: Yauheni Kaliuta <[email protected]> (cherry picked from commit d2caf7a)
…atahub-io#1194) Jira: https://issues.redhat.com/browse/RHOAIENG-11687 Current script is supposed to be used with branches since it uses "git clone -b" while preparing tagged releases it is useful to fetch tags. "git clone -b" can work with tags as well, but if the same name branch exists it fetches the branch which is not desireable behaviour if tagged release is being produced. Try to fetch tag. If it fails fallback to branch. GitHub discussion: opendatahub-io#1169 (comment) Signed-off-by: Yauheni Kaliuta <[email protected]> (cherry picked from commit d2caf7a)
Jira: https://issues.redhat.com/browse/RHOAIENG-11687
Current` script is supposed to be used with branches since it uses "git clone -b" while preparing tagged releases it is useful to fetch tags. "git clone -b" can work with tags as well, but if the same name branch exists it fetches the branch which is not desirable behaviour if tagged release is being produced.
Try to fetch tag. If it fails fallback to branch.
GitHub discussion: #1169 (comment)
Description
How Has This Been Tested?
Screenshot or short clip
Merge criteria