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

chore(ci): push generated code before cts #382

Merged
merged 6 commits into from
Apr 15, 2022
Merged

chore(ci): push generated code before cts #382

merged 6 commits into from
Apr 15, 2022

Conversation

millotp
Copy link
Collaborator

@millotp millotp commented Apr 15, 2022

🧭 What and Why

On the PRs, we don't have to wait for the CTS before pushing the generated code, and it can help debug the CTS.

Changes included:

  • Create special job for PR just to push code.

🧪 Test

CI

@millotp millotp self-assigned this Apr 15, 2022
@netlify
Copy link

netlify bot commented Apr 15, 2022

Deploy Preview for api-clients-automation canceled.

Name Link
🔨 Latest commit 244ecaa
🔍 Latest deploy log https://app.netlify.com/sites/api-clients-automation/deploys/625943bb53b56900082bead0

@algolia-bot
Copy link
Collaborator

algolia-bot commented Apr 15, 2022

✗ The generated branch has been deleted.

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

shortcuts
shortcuts previously approved these changes Apr 15, 2022
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.

Looks good, great addition!

Comment on lines 431 to 432
if: |
steps.pushGeneratedCode.exitcode == 0 &&
github.ref == 'refs/heads/main'
steps.pushGeneratedCode.exitcode == 0
Copy link
Member

Choose a reason for hiding this comment

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

We can put it on a single line

@shortcuts
Copy link
Member

(Ah yes you need to revert the spec change)

@millotp
Copy link
Collaborator Author

millotp commented Apr 15, 2022

Yeah I was waiting for the CI to finish

@millotp millotp requested a review from shortcuts April 15, 2022 10:07
@millotp millotp enabled auto-merge (squash) April 15, 2022 10:07
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.

gg

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