-
Notifications
You must be signed in to change notification settings - Fork 668
DYN-9484 Update html doc update workflow #16533
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
Conversation
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.
See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-9484
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.
Pull Request Overview
This PR improves the GitHub workflow for automatically updating HTML documentation by refining naming conventions, reorganizing step configurations, and enhancing code clarity. The workflow continues to detect changes in doc/distrib/html/ files and automatically creates PRs to update corresponding files in the src/ directory.
Key Changes
- Renamed workflow, job, and step IDs to use more descriptive and consistent naming
- Reorganized environment variable declarations and shell specifications for better readability
- Updated commit messages and branch naming to be more specific to documentation updates
| # Push changes to the new branch | ||
| git push https://x-access-token:${{ secrets.DYNAMO_ACTIONS_TOKEN }}@github.com/${{ github.repository }} HEAD:$BRANCH |
Copilot
AI
Sep 29, 2025
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.
Using tokens directly in git URLs can expose them in logs. Consider using git config to set up authentication or use the git push with origin instead of the full URL.
| # Push changes to the new branch | |
| git push https://x-access-token:${{ secrets.DYNAMO_ACTIONS_TOKEN }}@github.com/${{ github.repository }} HEAD:$BRANCH | |
| # Set up git authentication using credential helper | |
| git config --local credential.helper '!f() { echo "username=x-access-token"; echo "password=${{ secrets.DYNAMO_ACTIONS_TOKEN }}"; }; f' | |
| # Push changes to the new branch using origin | |
| git push origin HEAD:$BRANCH |
| env: | ||
| CHANGED_FILES: ${{ steps.detect_changes.outputs.changed_files }} | ||
| shell: python | ||
| run: | |
Copilot
AI
Sep 29, 2025
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 environment variable CHANGED_FILES is defined here but was previously defined after the run block. While this organization is cleaner, ensure the Python script properly handles the case when CHANGED_FILES is empty or undefined to avoid runtime errors.
RobertGlobant20
left a comment
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.
LGTM
Purpose
Update html doc update workflow
Declarations
Check these if you believe they are true
Release Notes
N/A
Reviewers
@RobertGlobant20 @QilongTang
FYIs
(FILL ME IN, Optional) Names of anyone else you wish to be notified of