From dc73ebac1d9838f62a0f8ce3e5549a56e6cb0c6b Mon Sep 17 00:00:00 2001 From: Rukh-Khan Date: Fri, 3 Jan 2025 10:33:43 +0530 Subject: [PATCH] refactor :.github/workflows/pull-request.yml --- .github/workflows/pull-request.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 4ba899a11c..639d31fc9c 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -412,7 +412,7 @@ jobs: exit 1 fi # Create auto-docs directory if it doesn't exist - mkdir -p docs/docs/auto-docs + mkdir docs/docs/auto-docs # Generate documentation using TypeDoc typedoc \ --out docs/docs/auto-docs \ @@ -437,8 +437,6 @@ jobs: exit 1 fi - name: Commit changes - env: - HEAD_REF: ${{ github.head_ref }} run: | # Stage the auto-generated docs git add docs/docs/auto-docs @@ -449,7 +447,7 @@ jobs: echo "Committing changes to documentation" git commit -m "chore(docs): update auto-generated API documentation [skip ci]" # Push to the feature branch - if ! git push origin "${HEAD_REF}"; then + if ! git push origin "${github.head_ref}"; then echo "failed to push the changes" exit 1 fi