From 70e60ca776409b42e58a571dbbf91ec0406f0802 Mon Sep 17 00:00:00 2001 From: Dima Shevtsov Date: Fri, 19 Dec 2025 14:19:17 -0600 Subject: [PATCH] Refactor GitHub Pages deployment workflow to simplify branch handling. Removed the branch input requirement and updated the branch reference to use `github.ref_name` directly, enhancing workflow efficiency. --- .github/workflows/deploy-github-pages.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/deploy-github-pages.yml b/.github/workflows/deploy-github-pages.yml index 725191e..b84d1e8 100644 --- a/.github/workflows/deploy-github-pages.yml +++ b/.github/workflows/deploy-github-pages.yml @@ -2,12 +2,6 @@ name: Deploy GitHub Pages preview on: workflow_dispatch: - inputs: - branch: - description: "Branch to deploy" - type: string - required: true - default: main permissions: contents: read @@ -18,4 +12,4 @@ jobs: preview: uses: ./.github/workflows/github-pages-preview.yml with: - branch: ${{ inputs.branch || github.ref }} + branch: ${{ github.ref_name }}