-
Notifications
You must be signed in to change notification settings - Fork 0
ci: trigger another test #55
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
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,10 +136,11 @@ jobs: | |||||||
| sudo systemctl status strapi.service | ||||||||
|
|
||||||||
| sync-mdx-to-strapi: | ||||||||
| needs: check-pr-merge | ||||||||
| needs: [check-pr-merge, rebuild-strapi] | ||||||||
| if: | | ||||||||
| (needs.check-pr-merge.outputs.is_merged_pr == 'true' && needs.check-pr-merge.outputs.content_changed == 'true') || | ||||||||
| needs.check-pr-merge.outputs.is_merged_pr == 'manual' | ||||||||
| always() && | ||||||||
| ((needs.check-pr-merge.outputs.is_merged_pr == 'true' && needs.check-pr-merge.outputs.content_changed == 'true') || | ||||||||
| needs.check-pr-merge.outputs.is_merged_pr == 'manual') | ||||||||
| runs-on: ubuntu-latest | ||||||||
|
|
||||||||
| steps: | ||||||||
|
|
@@ -156,8 +157,7 @@ jobs: | |||||||
| with: | ||||||||
| version: 9 | ||||||||
|
|
||||||||
| - name: Install CMS dependencies | ||||||||
| working-directory: cms | ||||||||
| - name: Install dependencies | ||||||||
|
||||||||
| - name: Install dependencies | |
| - name: Install CMS dependencies | |
| working-directory: cms |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,6 @@ | ||
| packages: | ||
| - 'cms' | ||
|
|
||
| onlyBuiltDependencies: | ||
| - '@parcel/watcher' | ||
| - esbuild | ||
|
|
||
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.
The
always()condition combined with therebuild-strapidependency could cause the sync job to run even whenrebuild-strapifails. This means MDX content could be synced to a broken Strapi instance.Consider using a more specific condition that checks if
rebuild-strapieither succeeded or was skipped (not failed):needs.rebuild-strapi.result == 'success' || needs.rebuild-strapi.result == 'skipped'This would ensure the sync job only runs when Strapi is in a good state, while still allowing it to run when the rebuild was skipped (because no CMS changes were detected).