mirror of
https://github.com/HackTricks-wiki/hacktricks.git
synced 2025-10-10 18:36:50 +00:00
f
This commit is contained in:
parent
197cf1cc58
commit
18a66b25a4
5
.github/workflows/translate_es.yml
vendored
5
.github/workflows/translate_es.yml
vendored
@ -58,10 +58,13 @@ jobs:
|
|||||||
git checkout $BRANCH
|
git checkout $BRANCH
|
||||||
git pull
|
git pull
|
||||||
python scripts/compare_and_fix_refs.py --files-unmatched-paths /tmp/file_paths.txt
|
python scripts/compare_and_fix_refs.py --files-unmatched-paths /tmp/file_paths.txt
|
||||||
git checkout master
|
git add .
|
||||||
|
git commit -m "Fix unmatched refs" || echo "No changes to commit"
|
||||||
|
git push || echo "No changes to push"
|
||||||
|
|
||||||
- name: Run translation script on changed files
|
- name: Run translation script on changed files
|
||||||
run: |
|
run: |
|
||||||
|
git checkout master
|
||||||
export OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}
|
export OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}
|
||||||
git diff --name-only HEAD~1 | 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user