Skip to content

Conversation

@avidit
Copy link
Contributor

@avidit avidit commented Sep 29, 2025

Purpose

Update html doc update workflow

  • set remote url with token to properly push branch

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

Copilot AI review requested due to automatic review settings September 29, 2025 16:48
Copy link

@github-actions github-actions bot left a 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

Copy link
Contributor

Copilot AI left a 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

Comment on lines 155 to 156
# Push changes to the new branch
git push https://x-access-token:${{ secrets.DYNAMO_ACTIONS_TOKEN }}@github.com/${{ github.repository }} HEAD:$BRANCH
Copy link

Copilot AI Sep 29, 2025

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.

Suggested change
# 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

Copilot uses AI. Check for mistakes.
Comment on lines +45 to 48
env:
CHANGED_FILES: ${{ steps.detect_changes.outputs.changed_files }}
shell: python
run: |
Copy link

Copilot AI Sep 29, 2025

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.

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@RobertGlobant20 RobertGlobant20 left a comment

Choose a reason for hiding this comment

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

LGTM

@zeusongit zeusongit merged commit f195c1f into DynamoDS:master Sep 29, 2025
27 of 30 checks passed
@avidit avidit deleted the dyn-9484 branch September 29, 2025 17:56
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