mirror of
https://github.com/HackTricks-wiki/hacktricks-cloud.git
synced 2025-12-07 05:10:48 -08:00
t4
This commit is contained in:
2
.github/workflows/build_master.yml
vendored
2
.github/workflows/build_master.yml
vendored
@@ -50,7 +50,7 @@ jobs:
|
||||
|
||||
# Build the mdBook
|
||||
- name: Build mdBook
|
||||
run: MDBOOK_BOOK__LANGUAGE=en mdbook build
|
||||
run: MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
|
||||
# Cat hacktricks-preprocessor.log
|
||||
#- name: Cat hacktricks-preprocessor.log
|
||||
|
||||
13
.github/workflows/translate_af.yml
vendored
13
.github/workflows/translate_af.yml
vendored
@@ -46,7 +46,8 @@ jobs:
|
||||
git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud
|
||||
git config --global user.name 'Translator'
|
||||
git config --global user.email 'github-actions@github.com'
|
||||
git checkout af
|
||||
git config pull.rebase false
|
||||
git checkout $BRANCH
|
||||
git pull
|
||||
git checkout master
|
||||
|
||||
@@ -58,18 +59,18 @@ jobs:
|
||||
echo -n "$file , " >> /tmp/file_paths.txt
|
||||
fi
|
||||
done
|
||||
python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
|
||||
- name: Commit and push changes
|
||||
run: |
|
||||
git checkout af
|
||||
git checkout $BRANCH
|
||||
git add -A
|
||||
git commit -m "Translated Afrikaans files" || true
|
||||
git push --set-upstream origin af
|
||||
git commit -m "Translated $LANGUAGE files" || true
|
||||
git push --set-upstream origin $BRANCH
|
||||
|
||||
- name: Build mdBook
|
||||
run: |
|
||||
MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
|
||||
# Login in AWs
|
||||
- name: Configure AWS credentials using OIDC
|
||||
|
||||
13
.github/workflows/translate_de.yml
vendored
13
.github/workflows/translate_de.yml
vendored
@@ -46,7 +46,8 @@ jobs:
|
||||
git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud
|
||||
git config --global user.name 'Translator'
|
||||
git config --global user.email 'github-actions@github.com'
|
||||
git checkout af
|
||||
git config pull.rebase false
|
||||
git checkout $BRANCH
|
||||
git pull
|
||||
git checkout master
|
||||
|
||||
@@ -58,18 +59,18 @@ jobs:
|
||||
echo -n "$file , " >> /tmp/file_paths.txt
|
||||
fi
|
||||
done
|
||||
python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
|
||||
- name: Commit and push changes
|
||||
run: |
|
||||
git checkout af
|
||||
git checkout $BRANCH
|
||||
git add -A
|
||||
git commit -m "Translated Afrikaans files" || true
|
||||
git push --set-upstream origin af
|
||||
git commit -m "Translated $LANGUAGE files" || true
|
||||
git push --set-upstream origin $BRANCH
|
||||
|
||||
- name: Build mdBook
|
||||
run: |
|
||||
MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
|
||||
# Login in AWs
|
||||
- name: Configure AWS credentials using OIDC
|
||||
|
||||
13
.github/workflows/translate_el.yml
vendored
13
.github/workflows/translate_el.yml
vendored
@@ -46,7 +46,8 @@ jobs:
|
||||
git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud
|
||||
git config --global user.name 'Translator'
|
||||
git config --global user.email 'github-actions@github.com'
|
||||
git checkout af
|
||||
git config pull.rebase false
|
||||
git checkout $BRANCH
|
||||
git pull
|
||||
git checkout master
|
||||
|
||||
@@ -58,18 +59,18 @@ jobs:
|
||||
echo -n "$file , " >> /tmp/file_paths.txt
|
||||
fi
|
||||
done
|
||||
python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
|
||||
- name: Commit and push changes
|
||||
run: |
|
||||
git checkout af
|
||||
git checkout $BRANCH
|
||||
git add -A
|
||||
git commit -m "Translated Afrikaans files" || true
|
||||
git push --set-upstream origin af
|
||||
git commit -m "Translated $LANGUAGE files" || true
|
||||
git push --set-upstream origin $BRANCH
|
||||
|
||||
- name: Build mdBook
|
||||
run: |
|
||||
MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
|
||||
# Login in AWs
|
||||
- name: Configure AWS credentials using OIDC
|
||||
|
||||
13
.github/workflows/translate_es.yml
vendored
13
.github/workflows/translate_es.yml
vendored
@@ -46,7 +46,8 @@ jobs:
|
||||
git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud
|
||||
git config --global user.name 'Translator'
|
||||
git config --global user.email 'github-actions@github.com'
|
||||
git checkout af
|
||||
git config pull.rebase false
|
||||
git checkout $BRANCH
|
||||
git pull
|
||||
git checkout master
|
||||
|
||||
@@ -58,18 +59,18 @@ jobs:
|
||||
echo -n "$file , " >> /tmp/file_paths.txt
|
||||
fi
|
||||
done
|
||||
python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
|
||||
- name: Commit and push changes
|
||||
run: |
|
||||
git checkout af
|
||||
git checkout $BRANCH
|
||||
git add -A
|
||||
git commit -m "Translated Afrikaans files" || true
|
||||
git push --set-upstream origin af
|
||||
git commit -m "Translated $LANGUAGE files" || true
|
||||
git push --set-upstream origin $BRANCH
|
||||
|
||||
- name: Build mdBook
|
||||
run: |
|
||||
MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
|
||||
# Login in AWs
|
||||
- name: Configure AWS credentials using OIDC
|
||||
|
||||
13
.github/workflows/translate_fr.yml
vendored
13
.github/workflows/translate_fr.yml
vendored
@@ -46,7 +46,8 @@ jobs:
|
||||
git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud
|
||||
git config --global user.name 'Translator'
|
||||
git config --global user.email 'github-actions@github.com'
|
||||
git checkout af
|
||||
git config pull.rebase false
|
||||
git checkout $BRANCH
|
||||
git pull
|
||||
git checkout master
|
||||
|
||||
@@ -58,18 +59,18 @@ jobs:
|
||||
echo -n "$file , " >> /tmp/file_paths.txt
|
||||
fi
|
||||
done
|
||||
python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
|
||||
- name: Commit and push changes
|
||||
run: |
|
||||
git checkout af
|
||||
git checkout $BRANCH
|
||||
git add -A
|
||||
git commit -m "Translated Afrikaans files" || true
|
||||
git push --set-upstream origin af
|
||||
git commit -m "Translated $LANGUAGE files" || true
|
||||
git push --set-upstream origin $BRANCH
|
||||
|
||||
- name: Build mdBook
|
||||
run: |
|
||||
MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
|
||||
# Login in AWs
|
||||
- name: Configure AWS credentials using OIDC
|
||||
|
||||
13
.github/workflows/translate_hi.yml
vendored
13
.github/workflows/translate_hi.yml
vendored
@@ -46,7 +46,8 @@ jobs:
|
||||
git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud
|
||||
git config --global user.name 'Translator'
|
||||
git config --global user.email 'github-actions@github.com'
|
||||
git checkout af
|
||||
git config pull.rebase false
|
||||
git checkout $BRANCH
|
||||
git pull
|
||||
git checkout master
|
||||
|
||||
@@ -58,18 +59,18 @@ jobs:
|
||||
echo -n "$file , " >> /tmp/file_paths.txt
|
||||
fi
|
||||
done
|
||||
python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
|
||||
- name: Commit and push changes
|
||||
run: |
|
||||
git checkout af
|
||||
git checkout $BRANCH
|
||||
git add -A
|
||||
git commit -m "Translated Afrikaans files" || true
|
||||
git push --set-upstream origin af
|
||||
git commit -m "Translated $LANGUAGE files" || true
|
||||
git push --set-upstream origin $BRANCH
|
||||
|
||||
- name: Build mdBook
|
||||
run: |
|
||||
MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
|
||||
# Login in AWs
|
||||
- name: Configure AWS credentials using OIDC
|
||||
|
||||
13
.github/workflows/translate_it.yml
vendored
13
.github/workflows/translate_it.yml
vendored
@@ -46,7 +46,8 @@ jobs:
|
||||
git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud
|
||||
git config --global user.name 'Translator'
|
||||
git config --global user.email 'github-actions@github.com'
|
||||
git checkout af
|
||||
git config pull.rebase false
|
||||
git checkout $BRANCH
|
||||
git pull
|
||||
git checkout master
|
||||
|
||||
@@ -58,18 +59,18 @@ jobs:
|
||||
echo -n "$file , " >> /tmp/file_paths.txt
|
||||
fi
|
||||
done
|
||||
python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
|
||||
- name: Commit and push changes
|
||||
run: |
|
||||
git checkout af
|
||||
git checkout $BRANCH
|
||||
git add -A
|
||||
git commit -m "Translated Afrikaans files" || true
|
||||
git push --set-upstream origin af
|
||||
git commit -m "Translated $LANGUAGE files" || true
|
||||
git push --set-upstream origin $BRANCH
|
||||
|
||||
- name: Build mdBook
|
||||
run: |
|
||||
MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
|
||||
# Login in AWs
|
||||
- name: Configure AWS credentials using OIDC
|
||||
|
||||
13
.github/workflows/translate_ja.yml
vendored
13
.github/workflows/translate_ja.yml
vendored
@@ -46,7 +46,8 @@ jobs:
|
||||
git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud
|
||||
git config --global user.name 'Translator'
|
||||
git config --global user.email 'github-actions@github.com'
|
||||
git checkout af
|
||||
git config pull.rebase false
|
||||
git checkout $BRANCH
|
||||
git pull
|
||||
git checkout master
|
||||
|
||||
@@ -58,18 +59,18 @@ jobs:
|
||||
echo -n "$file , " >> /tmp/file_paths.txt
|
||||
fi
|
||||
done
|
||||
python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
|
||||
- name: Commit and push changes
|
||||
run: |
|
||||
git checkout af
|
||||
git checkout $BRANCH
|
||||
git add -A
|
||||
git commit -m "Translated Afrikaans files" || true
|
||||
git push --set-upstream origin af
|
||||
git commit -m "Translated $LANGUAGE files" || true
|
||||
git push --set-upstream origin $BRANCH
|
||||
|
||||
- name: Build mdBook
|
||||
run: |
|
||||
MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
|
||||
# Login in AWs
|
||||
- name: Configure AWS credentials using OIDC
|
||||
|
||||
13
.github/workflows/translate_ko.yml
vendored
13
.github/workflows/translate_ko.yml
vendored
@@ -46,7 +46,8 @@ jobs:
|
||||
git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud
|
||||
git config --global user.name 'Translator'
|
||||
git config --global user.email 'github-actions@github.com'
|
||||
git checkout af
|
||||
git config pull.rebase false
|
||||
git checkout $BRANCH
|
||||
git pull
|
||||
git checkout master
|
||||
|
||||
@@ -58,18 +59,18 @@ jobs:
|
||||
echo -n "$file , " >> /tmp/file_paths.txt
|
||||
fi
|
||||
done
|
||||
python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
|
||||
- name: Commit and push changes
|
||||
run: |
|
||||
git checkout af
|
||||
git checkout $BRANCH
|
||||
git add -A
|
||||
git commit -m "Translated Afrikaans files" || true
|
||||
git push --set-upstream origin af
|
||||
git commit -m "Translated $LANGUAGE files" || true
|
||||
git push --set-upstream origin $BRANCH
|
||||
|
||||
- name: Build mdBook
|
||||
run: |
|
||||
MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
|
||||
# Login in AWs
|
||||
- name: Configure AWS credentials using OIDC
|
||||
|
||||
13
.github/workflows/translate_pl.yml
vendored
13
.github/workflows/translate_pl.yml
vendored
@@ -46,7 +46,8 @@ jobs:
|
||||
git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud
|
||||
git config --global user.name 'Translator'
|
||||
git config --global user.email 'github-actions@github.com'
|
||||
git checkout af
|
||||
git config pull.rebase false
|
||||
git checkout $BRANCH
|
||||
git pull
|
||||
git checkout master
|
||||
|
||||
@@ -58,18 +59,18 @@ jobs:
|
||||
echo -n "$file , " >> /tmp/file_paths.txt
|
||||
fi
|
||||
done
|
||||
python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
|
||||
- name: Commit and push changes
|
||||
run: |
|
||||
git checkout af
|
||||
git checkout $BRANCH
|
||||
git add -A
|
||||
git commit -m "Translated Afrikaans files" || true
|
||||
git push --set-upstream origin af
|
||||
git commit -m "Translated $LANGUAGE files" || true
|
||||
git push --set-upstream origin $BRANCH
|
||||
|
||||
- name: Build mdBook
|
||||
run: |
|
||||
MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
|
||||
# Login in AWs
|
||||
- name: Configure AWS credentials using OIDC
|
||||
|
||||
13
.github/workflows/translate_pt.yml
vendored
13
.github/workflows/translate_pt.yml
vendored
@@ -46,7 +46,8 @@ jobs:
|
||||
git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud
|
||||
git config --global user.name 'Translator'
|
||||
git config --global user.email 'github-actions@github.com'
|
||||
git checkout af
|
||||
git config pull.rebase false
|
||||
git checkout $BRANCH
|
||||
git pull
|
||||
git checkout master
|
||||
|
||||
@@ -58,18 +59,18 @@ jobs:
|
||||
echo -n "$file , " >> /tmp/file_paths.txt
|
||||
fi
|
||||
done
|
||||
python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
|
||||
- name: Commit and push changes
|
||||
run: |
|
||||
git checkout af
|
||||
git checkout $BRANCH
|
||||
git add -A
|
||||
git commit -m "Translated Afrikaans files" || true
|
||||
git push --set-upstream origin af
|
||||
git commit -m "Translated $LANGUAGE files" || true
|
||||
git push --set-upstream origin $BRANCH
|
||||
|
||||
- name: Build mdBook
|
||||
run: |
|
||||
MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
|
||||
# Login in AWs
|
||||
- name: Configure AWS credentials using OIDC
|
||||
|
||||
13
.github/workflows/translate_sr.yml
vendored
13
.github/workflows/translate_sr.yml
vendored
@@ -46,7 +46,8 @@ jobs:
|
||||
git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud
|
||||
git config --global user.name 'Translator'
|
||||
git config --global user.email 'github-actions@github.com'
|
||||
git checkout af
|
||||
git config pull.rebase false
|
||||
git checkout $BRANCH
|
||||
git pull
|
||||
git checkout master
|
||||
|
||||
@@ -58,18 +59,18 @@ jobs:
|
||||
echo -n "$file , " >> /tmp/file_paths.txt
|
||||
fi
|
||||
done
|
||||
python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
|
||||
- name: Commit and push changes
|
||||
run: |
|
||||
git checkout af
|
||||
git checkout $BRANCH
|
||||
git add -A
|
||||
git commit -m "Translated Afrikaans files" || true
|
||||
git push --set-upstream origin af
|
||||
git commit -m "Translated $LANGUAGE files" || true
|
||||
git push --set-upstream origin $BRANCH
|
||||
|
||||
- name: Build mdBook
|
||||
run: |
|
||||
MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
|
||||
# Login in AWs
|
||||
- name: Configure AWS credentials using OIDC
|
||||
|
||||
13
.github/workflows/translate_sw.yml
vendored
13
.github/workflows/translate_sw.yml
vendored
@@ -46,7 +46,8 @@ jobs:
|
||||
git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud
|
||||
git config --global user.name 'Translator'
|
||||
git config --global user.email 'github-actions@github.com'
|
||||
git checkout af
|
||||
git config pull.rebase false
|
||||
git checkout $BRANCH
|
||||
git pull
|
||||
git checkout master
|
||||
|
||||
@@ -58,18 +59,18 @@ jobs:
|
||||
echo -n "$file , " >> /tmp/file_paths.txt
|
||||
fi
|
||||
done
|
||||
python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
|
||||
- name: Commit and push changes
|
||||
run: |
|
||||
git checkout af
|
||||
git checkout $BRANCH
|
||||
git add -A
|
||||
git commit -m "Translated Afrikaans files" || true
|
||||
git push --set-upstream origin af
|
||||
git commit -m "Translated $LANGUAGE files" || true
|
||||
git push --set-upstream origin $BRANCH
|
||||
|
||||
- name: Build mdBook
|
||||
run: |
|
||||
MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
|
||||
# Login in AWs
|
||||
- name: Configure AWS credentials using OIDC
|
||||
|
||||
13
.github/workflows/translate_tr.yml
vendored
13
.github/workflows/translate_tr.yml
vendored
@@ -46,7 +46,8 @@ jobs:
|
||||
git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud
|
||||
git config --global user.name 'Translator'
|
||||
git config --global user.email 'github-actions@github.com'
|
||||
git checkout af
|
||||
git config pull.rebase false
|
||||
git checkout $BRANCH
|
||||
git pull
|
||||
git checkout master
|
||||
|
||||
@@ -58,18 +59,18 @@ jobs:
|
||||
echo -n "$file , " >> /tmp/file_paths.txt
|
||||
fi
|
||||
done
|
||||
python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
|
||||
- name: Commit and push changes
|
||||
run: |
|
||||
git checkout af
|
||||
git checkout $BRANCH
|
||||
git add -A
|
||||
git commit -m "Translated Afrikaans files" || true
|
||||
git push --set-upstream origin af
|
||||
git commit -m "Translated $LANGUAGE files" || true
|
||||
git push --set-upstream origin $BRANCH
|
||||
|
||||
- name: Build mdBook
|
||||
run: |
|
||||
MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
|
||||
# Login in AWs
|
||||
- name: Configure AWS credentials using OIDC
|
||||
|
||||
13
.github/workflows/translate_uk.yml
vendored
13
.github/workflows/translate_uk.yml
vendored
@@ -46,7 +46,8 @@ jobs:
|
||||
git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud
|
||||
git config --global user.name 'Translator'
|
||||
git config --global user.email 'github-actions@github.com'
|
||||
git checkout af
|
||||
git config pull.rebase false
|
||||
git checkout $BRANCH
|
||||
git pull
|
||||
git checkout master
|
||||
|
||||
@@ -58,18 +59,18 @@ jobs:
|
||||
echo -n "$file , " >> /tmp/file_paths.txt
|
||||
fi
|
||||
done
|
||||
python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
|
||||
- name: Commit and push changes
|
||||
run: |
|
||||
git checkout af
|
||||
git checkout $BRANCH
|
||||
git add -A
|
||||
git commit -m "Translated Afrikaans files" || true
|
||||
git push --set-upstream origin af
|
||||
git commit -m "Translated $LANGUAGE files" || true
|
||||
git push --set-upstream origin $BRANCH
|
||||
|
||||
- name: Build mdBook
|
||||
run: |
|
||||
MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
|
||||
# Login in AWs
|
||||
- name: Configure AWS credentials using OIDC
|
||||
|
||||
13
.github/workflows/translate_zh.yml
vendored
13
.github/workflows/translate_zh.yml
vendored
@@ -46,7 +46,8 @@ jobs:
|
||||
git config --global --add safe.directory /__w/hacktricks-cloud/hacktricks-cloud
|
||||
git config --global user.name 'Translator'
|
||||
git config --global user.email 'github-actions@github.com'
|
||||
git checkout af
|
||||
git config pull.rebase false
|
||||
git checkout $BRANCH
|
||||
git pull
|
||||
git checkout master
|
||||
|
||||
@@ -58,18 +59,18 @@ jobs:
|
||||
echo -n "$file , " >> /tmp/file_paths.txt
|
||||
fi
|
||||
done
|
||||
python scripts/translator.py --language "Afrikaans" --branch "af" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
python scripts/translator.py --language "$LANGUAGE" --branch "$BRANCH" --api-key "$OPENAI_API_KEY" -f "$(cat /tmp/file_paths.txt)" -t 3
|
||||
|
||||
- name: Commit and push changes
|
||||
run: |
|
||||
git checkout af
|
||||
git checkout $BRANCH
|
||||
git add -A
|
||||
git commit -m "Translated Afrikaans files" || true
|
||||
git push --set-upstream origin af
|
||||
git commit -m "Translated $LANGUAGE files" || true
|
||||
git push --set-upstream origin $BRANCH
|
||||
|
||||
- name: Build mdBook
|
||||
run: |
|
||||
MDBOOK_BOOK__LANGUAGE=af mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (cat hacktricks-preprocessor-error.log && exit 1)
|
||||
|
||||
# Login in AWs
|
||||
- name: Configure AWS credentials using OIDC
|
||||
|
||||
@@ -82,4 +82,3 @@ az rest --method PUT \
|
||||
{{#include ../../../banners/hacktricks-training.md}}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ gcloud source repos get-iam-policy <repo_name>
|
||||
gcloud source repos clone <REPO NAME>
|
||||
gcloud source repos get-iam-policy <REPO NAME>
|
||||
... git add & git commit -m ...
|
||||
git push --set-upstream origin master
|
||||
git push --set-upstream origin $BRANCH
|
||||
git push -u origin master
|
||||
|
||||
# Access via git
|
||||
|
||||
Reference in New Issue
Block a user