Skip to content

Conversation

shortcuts
Copy link
Member

🧭 What and Why

🎟 JIRA Ticket: -

Changes included:

Because cache keys were unreadable and hard to iterate on when working on GitHub actions.

  • Shorten cache key to only keep relevant data
  • Wrap under a single hashFiles with multiple parameters
  • Use new line syntax to avoid 300 char lines

It is still pretty repetitive, but at least we can now read the file easier.

🧪 Test

CI :D

@shortcuts shortcuts requested review from eunjae-lee and damcou March 9, 2022 11:31
@shortcuts shortcuts self-assigned this Mar 9, 2022
@netlify
Copy link

netlify bot commented Mar 9, 2022

✔️ Deploy Preview for api-clients-automation canceled.

🔨 Explore the source changes: 8ae1a2f

🔍 Inspect the deploy log: https://app.netlify.com/sites/api-clients-automation/deploys/6228a096e21a1500092f8b42

@shortcuts shortcuts marked this pull request as ready for review March 9, 2022 11:46
Copy link
Contributor

@eunjae-lee eunjae-lee left a comment

Choose a reason for hiding this comment

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

This looks good to me.

@shortcuts shortcuts merged commit 94e3166 into main Mar 9, 2022
@shortcuts shortcuts deleted the chore/cleaner-cache-key branch March 9, 2022 14:42
key: |
${{ env.CACHE_VERSION }}-${{
hashFiles(
'clients/algoliasearch-client-java-2/client-predict/**',
Copy link
Collaborator

Choose a reason for hiding this comment

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

didn't know java had the predict client already !

Copy link
Member Author

Choose a reason for hiding this comment

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

ahaha yep that was a miss, it's fixed in #244

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