-
Notifications
You must be signed in to change notification settings - Fork 11
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
Use release tag for release automation #125
Conversation
Current PR bundle automation is using main branch, while it should use the tagged commit instead. Signed-off-by: Carlo Lobrano <c.lobrano@gmail.com>
Skipping CI for Draft Pull Request. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: clobrano 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 |
@@ -55,6 +55,7 @@ jobs: | |||
export VERSION=${VERSION} | |||
export PREVIOUS_VERSION=${PREVIOUS_VERSION} | |||
export SKIP_RANGE_LOWER=${SKIP_RANGE_LOWER} | |||
git -C operator checkout v${VERSION} |
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.
Can it maybe done in the earlier step of Checkout code?
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.
It could but
- It needs another token (it can be the same used later)
- I wasn't able to make the
actions/checkout
ref
parameter dynamic. It works if I write
- name: Checkout code
uses: actions/checkout@v3
with:
path: operator
ref: v0.3.0
fetch-depth: 0
but whatever other variable I tried for the tag name, it took it litteraly (e.g. ${VERSION}, ${{ inputs.version }}, etc.)
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.
Ok, then no need to further investigate that :D
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.
wait, you select the branch / tag in the action's UI, right? It doesn't checkout the selected ref then?
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.
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.
/lgtm |
/retest
|
/hold |
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Closing this as unnecessary. The right branch/tag can be selected via workflow UI |
Current PR bundle automation is using main branch, while it should use
the tagged commit instead.