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

fix(ci): forgot the no codegen message #482

Merged
merged 3 commits into from
May 9, 2022
Merged

fix(ci): forgot the no codegen message #482

merged 3 commits into from
May 9, 2022

Conversation

millotp
Copy link
Collaborator

@millotp millotp commented May 9, 2022

🧭 What and Why

The CI was not editing the message when no code is generated.

Changes included:

  • Always run the pushGeneratedCode script

🧪 Test

CI

@millotp millotp requested a review from a team May 9, 2022 10:21
@millotp millotp self-assigned this May 9, 2022
@millotp millotp requested review from eunjae-lee and damcou and removed request for a team May 9, 2022 10:21
@netlify
Copy link

netlify bot commented May 9, 2022

Deploy Preview for api-clients-automation canceled.

Name Link
🔨 Latest commit 18ae816
🔍 Latest deploy log https://app.netlify.com/sites/api-clients-automation/deploys/62790f4bbc7a070008f7cf61

@algolia-bot
Copy link
Collaborator

algolia-bot commented May 9, 2022

✗ The generated branch has been deleted.

If the PR has been merged, you can check the generated code on the main branch.

Base automatically changed from doc/java-installation to main May 9, 2022 10:24
.github/actions/setup/action.yml Outdated Show resolved Hide resolved
.github/workflows/check.yml Outdated Show resolved Hide resolved
@@ -7,13 +7,14 @@ import TabItem from '@theme/TabItem';

<Tabs
Copy link
Member

Choose a reason for hiding this comment

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

the branch is outdated?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yep I forgot to rebase

@@ -92,7 +92,7 @@ runs:
echo "::set-output name=RUN_JS_ALGOLIASEARCH::true"
fi

if [[ ${{ steps.diff.outputs.JS_UTILS_CHANGED }} > 0 ]]; then
if [[ ${{ steps.diff.outputs.JS_UTILS_CHANGED }} > 0 || ${{ steps.diff.outputs.JS_CLIENT_CHANGED }} > 0 ]]; then
Copy link
Member

Choose a reason for hiding this comment

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

Ah it's because it's actually base_changed that is triggered here. It could maybe be useful that https://github.com/algolia/api-clients-automation/blob/main/scripts/ci/githubActions/createMatrix.ts#L74-L78 sets an output variable for the language like BASE_<LANGUAGE_NAME>_CHANGED

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good idea, I think it works that way

Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

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

Nice ty!

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.

3 participants