diff --git a/.github/workflows/translate_af.yml b/.github/workflows/translate_af.yml index af8db5511..56e760647 100644 --- a/.github/workflows/translate_af.yml +++ b/.github/workflows/translate_af.yml @@ -68,6 +68,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_de.yml b/.github/workflows/translate_de.yml index 0d68d28ee..ce4431e32 100644 --- a/.github/workflows/translate_de.yml +++ b/.github/workflows/translate_de.yml @@ -68,6 +68,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 795a57e56..bc904d208 100644 --- a/.github/workflows/translate_el.yml +++ b/.github/workflows/translate_el.yml @@ -68,6 +68,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 58f4ee0d5..64cfe2b21 100644 --- a/.github/workflows/translate_es.yml +++ b/.github/workflows/translate_es.yml @@ -67,6 +67,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 6724fdcef..050197df9 100644 --- a/.github/workflows/translate_fr.yml +++ b/.github/workflows/translate_fr.yml @@ -68,6 +68,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 0490c350c..5461b952c 100644 --- a/.github/workflows/translate_hi.yml +++ b/.github/workflows/translate_hi.yml @@ -68,6 +68,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 1366c5ca7..4f62d4421 100644 --- a/.github/workflows/translate_it.yml +++ b/.github/workflows/translate_it.yml @@ -68,6 +68,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 cbee93d37..724d9a5de 100644 --- a/.github/workflows/translate_ja.yml +++ b/.github/workflows/translate_ja.yml @@ -68,6 +68,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 e9f0f8a5a..d893dbb2d 100644 --- a/.github/workflows/translate_ko.yml +++ b/.github/workflows/translate_ko.yml @@ -68,6 +68,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 f7801bb56..b0ad484ea 100644 --- a/.github/workflows/translate_pl.yml +++ b/.github/workflows/translate_pl.yml @@ -68,6 +68,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 147c48867..2538d1daa 100644 --- a/.github/workflows/translate_pt.yml +++ b/.github/workflows/translate_pt.yml @@ -68,6 +68,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 acc681c31..afe252879 100644 --- a/.github/workflows/translate_sr.yml +++ b/.github/workflows/translate_sr.yml @@ -68,6 +68,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 a9545bc73..a3a09e181 100644 --- a/.github/workflows/translate_sw.yml +++ b/.github/workflows/translate_sw.yml @@ -68,6 +68,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 506e59a66..b6b30515c 100644 --- a/.github/workflows/translate_tr.yml +++ b/.github/workflows/translate_tr.yml @@ -68,6 +68,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 c35521e4e..89e592cd3 100644 --- a/.github/workflows/translate_uk.yml +++ b/.github/workflows/translate_uk.yml @@ -68,6 +68,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 1ef4f2b2c..4a994a0c9 100644 --- a/.github/workflows/translate_zh.yml +++ b/.github/workflows/translate_zh.yml @@ -68,6 +68,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