This commit is contained in:
carlospolop 2023-06-08 02:03:46 +02:00
parent cd4025c14f
commit a089b754f4
3 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ jobs:
export OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }} export OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}
# Run the translation script on each changed file # Run the translation script on each changed file
git diff-tree --no-commit-id --name-only -r "$GITHUB_SHA" | grep -v "SUMMARY.md" | while read -r file; do git diff --name-only HEAD~1 | grep -v "SUMMARY.md" | while read -r file; do
if echo "$file" | grep -qE '\.md$'; then if echo "$file" | grep -qE '\.md$'; then
echo -n "$file , " >> /tmp/file_paths.txt echo -n "$file , " >> /tmp/file_paths.txt
else else

View File

@ -61,7 +61,7 @@ jobs:
export OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }} export OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}
# Run the translation script on each changed file # Run the translation script on each changed file
git diff-tree --no-commit-id --name-only -r "$GITHUB_SHA" | grep -v "SUMMARY.md" | while read -r file; do git diff --name-only HEAD~1 | grep -v "SUMMARY.md" | while read -r file; do
if echo "$file" | grep -qE '\.md$'; then if echo "$file" | grep -qE '\.md$'; then
echo -n "$file , " >> /tmp/file_paths.txt echo -n "$file , " >> /tmp/file_paths.txt
else else

View File

@ -61,7 +61,7 @@ jobs:
export OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }} export OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}
# Run the translation script on each changed file # Run the translation script on each changed file
git diff-tree --no-commit-id --name-only -r "$GITHUB_SHA" | grep -v "SUMMARY.md" | while read -r file; do git diff --name-only HEAD~1 | grep -v "SUMMARY.md" | while read -r file; do
if echo "$file" | grep -qE '\.md$'; then if echo "$file" | grep -qE '\.md$'; then
echo -n "$file , " >> /tmp/file_paths.txt echo -n "$file , " >> /tmp/file_paths.txt
else else