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 dc73eba commit 910dce9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ jobs:
env:
CHANGED_UNAUTH_FILES: ${{ steps.changed-unauth-files.outputs.all_changed_files }}
run: |
for file in ${CHANGED_UNAUTH_FILES}; do
while IFS= read -r file; do
echo "$file is unauthorized to change/delete"
done
done <<< "${CHANGED_UNAUTH_FILES}"
echo "To override this, apply the 'ignore-sensitive-files-pr' label"
exit 1
Count-Changed-Files:
Expand Down Expand Up @@ -412,7 +412,7 @@ jobs:
exit 1
fi
# Create auto-docs directory if it doesn't exist
mkdir docs/docs/auto-docs
mkdir -p docs/docs/auto-docs
# Generate documentation using TypeDoc
typedoc \
--out docs/docs/auto-docs \
Expand Down Expand Up @@ -447,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 "${github.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 910dce9

Please sign in to comment.