[SYNC TEMPLATE v2.2.0]: Optimization of graph's generation (Advanced Workflow) #152
Mara-Li
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In advanced workflow, I have created a tutorial on a GitHub Action that allows generating graphs without breaking the Netlify/Vercel build. The graph is generated prior to the build, and it is always generated, even if no new markdown files are created.
To optimize the process and avoid wasting time, I have modified the workflow to include
tj-actions/changed-files@v36
. This action checks if any file indocs/**/**.md
is new or has been renamed.If a new or renamed file is detected, the Python build will be triggered, and the graph will be generated.
If no changes are found, the action will be ignored, and the build will proceed as usual.
Please make sure to update your
advanced_deploy.yml
file if you are using this specific workflow!Beta Was this translation helpful? Give feedback.
All reactions