Skip to content

Commit

Permalink
refactor :.github/workflows/pull-request.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Rukhsarkh committed Jan 3, 2025
1 parent 21fd93e commit dc73eba
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit dc73eba

Please sign in to comment.