Skip to content

Refactor GitHub Pages deployment workflow to simplify branch handling#203

Merged
dshevtsov merged 1 commit into
mainfrom
ds_fix-gh-pages
Dec 19, 2025
Merged

Refactor GitHub Pages deployment workflow to simplify branch handling#203
dshevtsov merged 1 commit into
mainfrom
ds_fix-gh-pages

Conversation

@dshevtsov
Copy link
Copy Markdown
Contributor

@dshevtsov dshevtsov commented Dec 19, 2025

Purpose of this pull request

This pull request simplifies the GitHub Pages deployment workflow by removing the unnecessary branch input parameter and using github.ref_name directly for more convenient branch selection.

Changes

  • Removed the branch input from workflow_dispatch that required manual specification
  • Updated branch reference from ${{ inputs.branch || github.ref }} to ${{ github.ref_name }}

This simplification makes the workflow easier to use since it automatically deploys from the branch where the workflow is triggered, eliminating the need for users to manually specify the branch name.

Testing

Green run: https://github.com/AdobeDocs/commerce-contributor/actions/runs/20382207755

Affected pages

N/A — This PR modifies a GitHub Actions workflow configuration and does not affect any public-facing documentation pages.

Links to the public Commerce codebase

…. Removed the branch input requirement and updated the branch reference to use `github.ref_name` directly, enhancing workflow efficiency.
@dshevtsov dshevtsov requested a review from a team December 19, 2025 20:27
@dshevtsov dshevtsov self-assigned this Dec 19, 2025
@dshevtsov dshevtsov added the enhancement New feature or request label Dec 19, 2025
@github-project-automation github-project-automation Bot moved this to 📋 Needs Review in Commerce - Pull Requests Dec 19, 2025
@github-project-automation github-project-automation Bot moved this from 📋 Needs Review to 👍 Approved in Commerce - Pull Requests Dec 19, 2025
@dshevtsov dshevtsov merged commit 1e6e666 into main Dec 19, 2025
9 checks passed
@dshevtsov dshevtsov deleted the ds_fix-gh-pages branch December 19, 2025 21:04
@github-project-automation github-project-automation Bot moved this from 👍 Approved to 🏁 Done in Commerce - Pull Requests Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants