Skip to content

Conversation

@EmilienM
Copy link
Contributor

  • ci/semver-auto: return a failure only when needed
  • Fix semver-auto

When go-apidiff returns semver=major, it returns RC=1 which causes the
workflow to return an error while we don't want that, we just want the
label to be applied.

Instead, let's ignore that error so the label can be set later and add a
step to check if an error occured and semver is not major, then it's an
actual problem that we should check in the logs (e.g. an issue when
running go-apidiff).

(cherry picked from commit 12ff5eb)
In my previous commit, I didn't read the output, fixing now.

(cherry picked from commit 2999b21)
@EmilienM EmilienM requested a review from mandre September 22, 2023 14:36
Copy link
Contributor

@mandre mandre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean backport of #2765 and #2773

@EmilienM EmilienM merged commit b024625 into gophercloud:v1 Sep 22, 2023
@EmilienM EmilienM deleted the backport_label_fix branch September 22, 2023 14:53
@github-actions github-actions bot added the semver:patch No API change label Sep 22, 2023
@pierreprinetti pierreprinetti added the v1 This PR targets v1 label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver:patch No API change v1 This PR targets v1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants