diff --git a/.github/workflows/translate_af.yml b/.github/workflows/translate_af.yml index 39e7aa302..c72dc7d71 100644 --- a/.github/workflows/translate_af.yml +++ b/.github/workflows/translate_af.yml @@ -65,7 +65,7 @@ jobs: - name: Build mdBook run: | MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1) - + - name: Update searchindex.js in repo run: | git checkout $BRANCH diff --git a/.github/workflows/translate_de.yml b/.github/workflows/translate_de.yml index 563ffdd0d..f12fd4507 100644 --- a/.github/workflows/translate_de.yml +++ b/.github/workflows/translate_de.yml @@ -66,6 +66,16 @@ jobs: run: | MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1) + - name: Update searchindex.js in repo + run: | + git checkout $BRANCH + git pull + cp book/searchindex.js searchindex.js + cp book/searchindex.json searchindex.json + git add searchindex.js searchindex.json + git commit -m "Update searchindex for $BRANCH" + git push + # Login in AWs - name: Configure AWS credentials using OIDC uses: aws-actions/configure-aws-credentials@v3 diff --git a/.github/workflows/translate_el.yml b/.github/workflows/translate_el.yml index 2e2e3a606..a274f6712 100644 --- a/.github/workflows/translate_el.yml +++ b/.github/workflows/translate_el.yml @@ -66,6 +66,16 @@ jobs: run: | MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1) + - name: Update searchindex.js in repo + run: | + git checkout $BRANCH + git pull + cp book/searchindex.js searchindex.js + cp book/searchindex.json searchindex.json + git add searchindex.js searchindex.json + git commit -m "Update searchindex for $BRANCH" + git push + # Login in AWs - name: Configure AWS credentials using OIDC uses: aws-actions/configure-aws-credentials@v3 diff --git a/.github/workflows/translate_es.yml b/.github/workflows/translate_es.yml index 612e89df0..03e504912 100644 --- a/.github/workflows/translate_es.yml +++ b/.github/workflows/translate_es.yml @@ -65,6 +65,16 @@ jobs: run: | MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1) + - name: Update searchindex.js in repo + run: | + git checkout $BRANCH + git pull + cp book/searchindex.js searchindex.js + cp book/searchindex.json searchindex.json + git add searchindex.js searchindex.json + git commit -m "Update searchindex for $BRANCH" + git push + # Login in AWs - name: Configure AWS credentials using OIDC uses: aws-actions/configure-aws-credentials@v3 diff --git a/.github/workflows/translate_fr.yml b/.github/workflows/translate_fr.yml index e3696191c..79668a6a9 100644 --- a/.github/workflows/translate_fr.yml +++ b/.github/workflows/translate_fr.yml @@ -66,6 +66,16 @@ jobs: run: | MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1) + - name: Update searchindex.js in repo + run: | + git checkout $BRANCH + git pull + cp book/searchindex.js searchindex.js + cp book/searchindex.json searchindex.json + git add searchindex.js searchindex.json + git commit -m "Update searchindex for $BRANCH" + git push + # Login in AWs - name: Configure AWS credentials using OIDC uses: aws-actions/configure-aws-credentials@v3 diff --git a/.github/workflows/translate_hi.yml b/.github/workflows/translate_hi.yml index 55e860c0f..902bc2649 100644 --- a/.github/workflows/translate_hi.yml +++ b/.github/workflows/translate_hi.yml @@ -66,6 +66,16 @@ jobs: run: | MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1) + - name: Update searchindex.js in repo + run: | + git checkout $BRANCH + git pull + cp book/searchindex.js searchindex.js + cp book/searchindex.json searchindex.json + git add searchindex.js searchindex.json + git commit -m "Update searchindex for $BRANCH" + git push + # Login in AWs - name: Configure AWS credentials using OIDC uses: aws-actions/configure-aws-credentials@v3 diff --git a/.github/workflows/translate_it.yml b/.github/workflows/translate_it.yml index d37b95f2b..8f349cf2b 100644 --- a/.github/workflows/translate_it.yml +++ b/.github/workflows/translate_it.yml @@ -66,6 +66,16 @@ jobs: run: | MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1) + - name: Update searchindex.js in repo + run: | + git checkout $BRANCH + git pull + cp book/searchindex.js searchindex.js + cp book/searchindex.json searchindex.json + git add searchindex.js searchindex.json + git commit -m "Update searchindex for $BRANCH" + git push + # Login in AWs - name: Configure AWS credentials using OIDC uses: aws-actions/configure-aws-credentials@v3 diff --git a/.github/workflows/translate_ja.yml b/.github/workflows/translate_ja.yml index ccef3771d..afa0b53e1 100644 --- a/.github/workflows/translate_ja.yml +++ b/.github/workflows/translate_ja.yml @@ -66,6 +66,16 @@ jobs: run: | MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1) + - name: Update searchindex.js in repo + run: | + git checkout $BRANCH + git pull + cp book/searchindex.js searchindex.js + cp book/searchindex.json searchindex.json + git add searchindex.js searchindex.json + git commit -m "Update searchindex for $BRANCH" + git push + # Login in AWs - name: Configure AWS credentials using OIDC uses: aws-actions/configure-aws-credentials@v3 diff --git a/.github/workflows/translate_ko.yml b/.github/workflows/translate_ko.yml index 2c843e891..b0105b388 100644 --- a/.github/workflows/translate_ko.yml +++ b/.github/workflows/translate_ko.yml @@ -66,6 +66,16 @@ jobs: run: | MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1) + - name: Update searchindex.js in repo + run: | + git checkout $BRANCH + git pull + cp book/searchindex.js searchindex.js + cp book/searchindex.json searchindex.json + git add searchindex.js searchindex.json + git commit -m "Update searchindex for $BRANCH" + git push + # Login in AWs - name: Configure AWS credentials using OIDC uses: aws-actions/configure-aws-credentials@v3 diff --git a/.github/workflows/translate_pl.yml b/.github/workflows/translate_pl.yml index 70a8316e0..f6a07eb23 100644 --- a/.github/workflows/translate_pl.yml +++ b/.github/workflows/translate_pl.yml @@ -66,6 +66,16 @@ jobs: run: | MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1) + - name: Update searchindex.js in repo + run: | + git checkout $BRANCH + git pull + cp book/searchindex.js searchindex.js + cp book/searchindex.json searchindex.json + git add searchindex.js searchindex.json + git commit -m "Update searchindex for $BRANCH" + git push + # Login in AWs - name: Configure AWS credentials using OIDC uses: aws-actions/configure-aws-credentials@v3 diff --git a/.github/workflows/translate_pt.yml b/.github/workflows/translate_pt.yml index 7f41ad8fe..252c651f3 100644 --- a/.github/workflows/translate_pt.yml +++ b/.github/workflows/translate_pt.yml @@ -66,6 +66,16 @@ jobs: run: | MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1) + - name: Update searchindex.js in repo + run: | + git checkout $BRANCH + git pull + cp book/searchindex.js searchindex.js + cp book/searchindex.json searchindex.json + git add searchindex.js searchindex.json + git commit -m "Update searchindex for $BRANCH" + git push + # Login in AWs - name: Configure AWS credentials using OIDC uses: aws-actions/configure-aws-credentials@v3 diff --git a/.github/workflows/translate_sr.yml b/.github/workflows/translate_sr.yml index ab22856ab..a660db8fe 100644 --- a/.github/workflows/translate_sr.yml +++ b/.github/workflows/translate_sr.yml @@ -66,6 +66,16 @@ jobs: run: | MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1) + - name: Update searchindex.js in repo + run: | + git checkout $BRANCH + git pull + cp book/searchindex.js searchindex.js + cp book/searchindex.json searchindex.json + git add searchindex.js searchindex.json + git commit -m "Update searchindex for $BRANCH" + git push + # Login in AWs - name: Configure AWS credentials using OIDC uses: aws-actions/configure-aws-credentials@v3 diff --git a/.github/workflows/translate_sw.yml b/.github/workflows/translate_sw.yml index 2c40bfe8d..e2761babc 100644 --- a/.github/workflows/translate_sw.yml +++ b/.github/workflows/translate_sw.yml @@ -66,6 +66,16 @@ jobs: run: | MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1) + - name: Update searchindex.js in repo + run: | + git checkout $BRANCH + git pull + cp book/searchindex.js searchindex.js + cp book/searchindex.json searchindex.json + git add searchindex.js searchindex.json + git commit -m "Update searchindex for $BRANCH" + git push + # Login in AWs - name: Configure AWS credentials using OIDC uses: aws-actions/configure-aws-credentials@v3 diff --git a/.github/workflows/translate_tr.yml b/.github/workflows/translate_tr.yml index e8ff96e71..5c3d9f1bc 100644 --- a/.github/workflows/translate_tr.yml +++ b/.github/workflows/translate_tr.yml @@ -66,6 +66,16 @@ jobs: run: | MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1) + - name: Update searchindex.js in repo + run: | + git checkout $BRANCH + git pull + cp book/searchindex.js searchindex.js + cp book/searchindex.json searchindex.json + git add searchindex.js searchindex.json + git commit -m "Update searchindex for $BRANCH" + git push + # Login in AWs - name: Configure AWS credentials using OIDC uses: aws-actions/configure-aws-credentials@v3 diff --git a/.github/workflows/translate_uk.yml b/.github/workflows/translate_uk.yml index 5703acdaf..8e373361f 100644 --- a/.github/workflows/translate_uk.yml +++ b/.github/workflows/translate_uk.yml @@ -66,6 +66,16 @@ jobs: run: | MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1) + - name: Update searchindex.js in repo + run: | + git checkout $BRANCH + git pull + cp book/searchindex.js searchindex.js + cp book/searchindex.json searchindex.json + git add searchindex.js searchindex.json + git commit -m "Update searchindex for $BRANCH" + git push + # Login in AWs - name: Configure AWS credentials using OIDC uses: aws-actions/configure-aws-credentials@v3 diff --git a/.github/workflows/translate_zh.yml b/.github/workflows/translate_zh.yml index 1eb3b8955..cbbfdef4e 100644 --- a/.github/workflows/translate_zh.yml +++ b/.github/workflows/translate_zh.yml @@ -66,6 +66,16 @@ jobs: run: | MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1) + - name: Update searchindex.js in repo + run: | + git checkout $BRANCH + git pull + cp book/searchindex.js searchindex.js + cp book/searchindex.json searchindex.json + git add searchindex.js searchindex.json + git commit -m "Update searchindex for $BRANCH" + git push + # Login in AWs - name: Configure AWS credentials using OIDC uses: aws-actions/configure-aws-credentials@v3