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(upload templates): using cut instead of dirname #2632

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

TBonnin
Copy link
Collaborator

@TBonnin TBonnin commented Aug 22, 2024

templates files can be in subfolders like actions/sync/etc... Using cut -d'/' -f1,2 to get the templates root folder (ex: integration-templates/salesforce) instead of dirname that gives us all subfolders

if list of changed files is

integration-templates/exact-online/actions/attach-file-invoice.ts
integration-templates/exact-online/actions/create-customer.ts
integration-templates/exact-online/actions/create-invoice.ts
integration-templates/exact-online/actions/update-customer.ts
integration-templates/exact-online/actions/update-invoice.ts
integration-templates/exact-online/schema.zod.ts
integration-templates/salesforce/actions/fetch-fields.ts

we want

integration-templates/exact-online
integration-templates/salesforce

and not

integration-templates/exact-online
integration-templates/exact-online/actions
integration-templates/salesforce/actions

files can be in subfolders like actions/sync/etc...
Using cut -d'/' -f1,2 to get the templates root folder (ex:
integration-templates/salesforce) instead of dirname that gives us all subfolders
@TBonnin TBonnin merged commit 2ccc00d into master Aug 22, 2024
26 checks passed
@TBonnin TBonnin deleted the tbonnin/fix-upload-templates-actions-dirname branch August 22, 2024 13:29
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.

2 participants