-
Notifications
You must be signed in to change notification settings - Fork 2
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: add checkout build action #508
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -136,6 +136,8 @@ jobs: | |||||||||
runs-on: ubuntu-latest | ||||||||||
if: ${{ !failure() && needs.ci-api.result == 'success' && github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'release' || startsWith(github.ref_name, 'release/')) }} | ||||||||||
steps: | ||||||||||
- uses: actions/checkout@v4 | ||||||||||
|
||||||||||
- uses: ./.github/actions/build_deploy_api | ||||||||||
with: | ||||||||||
sha_short: ${{ needs.ci-collect-info.outputs.sha_short }} | ||||||||||
|
@@ -152,6 +154,8 @@ jobs: | |||||||||
runs-on: ubuntu-latest | ||||||||||
if: ${{ !failure() && needs.ci-ui.result == 'success' && github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'release' || startsWith(github.ref_name, 'release/')) }} | ||||||||||
steps: | ||||||||||
- uses: actions/checkout@v4 | ||||||||||
|
||||||||||
Comment on lines
+157
to
+158
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider specifying Similar to the Apply this diff to specify - uses: actions/checkout@v4
+ with:
+ fetch-depth: 0 Committable suggestion
Suggested change
|
||||||||||
- uses: ./.github/actions/build_deploy_ui | ||||||||||
with: | ||||||||||
sha_short: ${{ needs.ci-collect-info.outputs.sha_short }} | ||||||||||
|
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.
Consider specifying
fetch-depth
in the checkout stepBy default,
actions/checkout@v4
performs a shallow clone withfetch-depth: 1
. If yourbuild_deploy_api
action relies on git history, tags, or multiple commits (e.g., for versioning or changelog generation), you might need to setfetch-depth: 0
to fetch the entire history.Apply this diff to specify
fetch-depth
:Committable suggestion