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

ci(docker): Fix calculating the ORT Server version #1611

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

mnonnenmacher
Copy link
Contributor

Set fetch-depth to 0 to checkout the whole commit history including tags. This is required to correctly calculate the ORT Server version.

Fixes #1610.

Set `fetch-depth` to `0` to checkout the whole commit history including
tags. This is required to correctly calculate the ORT Server version.

Fixes #1610.

Signed-off-by: Martin Nonnenmacher <martin.nonnenmacher@bosch.com>
@@ -84,6 +84,8 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
Copy link
Contributor

Choose a reason for hiding this comment

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

Would fetch-tags: true work as well?

Copy link
Contributor

@sschuberth sschuberth Dec 10, 2024

Choose a reason for hiding this comment

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

I guess not, at least when used instead of fetch-depth: 0.

Copy link
Contributor Author

@mnonnenmacher mnonnenmacher Dec 10, 2024

Choose a reason for hiding this comment

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

I saw it as well but then found actions/checkout#1471, so I just used the same config as in the release workflow.

@mnonnenmacher mnonnenmacher added this pull request to the merge queue Dec 10, 2024
Merged via the queue into main with commit 45ee190 Dec 10, 2024
13 checks passed
@mnonnenmacher mnonnenmacher deleted the fix-docker-app-version branch December 10, 2024 13:23
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.

ORT Server version information is wrong
2 participants