diff --git a/.github/workflows/translate_af.yml b/.github/workflows/translate_af.yml index 5947bcec6..8b7496ad0 100644 --- a/.github/workflows/translate_af.yml +++ b/.github/workflows/translate_af.yml @@ -64,8 +64,11 @@ jobs: - name: Build mdBook run: | + git checkout "$BRANCH" + git pull 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 @@ -84,4 +87,11 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: | + echo "Current branch:" + git rev-parse --abbrev-ref HEAD + echo "Syncing $BRANCH to S3" + aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete + echo "Sync completed" + echo "Cat 3 files from the book" + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat diff --git a/.github/workflows/translate_de.yml b/.github/workflows/translate_de.yml index 7ee5d782b..62ab69a88 100644 --- a/.github/workflows/translate_de.yml +++ b/.github/workflows/translate_de.yml @@ -64,7 +64,10 @@ jobs: - name: Build mdBook run: | + git checkout "$BRANCH" + git pull 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: | @@ -84,4 +87,11 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: | + echo "Current branch:" + git rev-parse --abbrev-ref HEAD + echo "Syncing $BRANCH to S3" + aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete + echo "Sync completed" + echo "Cat 3 files from the book" + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat diff --git a/.github/workflows/translate_el.yml b/.github/workflows/translate_el.yml index 4c436ba40..bb17edcea 100644 --- a/.github/workflows/translate_el.yml +++ b/.github/workflows/translate_el.yml @@ -64,7 +64,10 @@ jobs: - name: Build mdBook run: | + git checkout "$BRANCH" + git pull 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: | @@ -84,4 +87,11 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: | + echo "Current branch:" + git rev-parse --abbrev-ref HEAD + echo "Syncing $BRANCH to S3" + aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete + echo "Sync completed" + echo "Cat 3 files from the book" + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat diff --git a/.github/workflows/translate_es.yml b/.github/workflows/translate_es.yml index aee640d11..a86b7124f 100644 --- a/.github/workflows/translate_es.yml +++ b/.github/workflows/translate_es.yml @@ -63,7 +63,10 @@ jobs: - name: Build mdBook run: | + git checkout "$BRANCH" + git pull 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: | @@ -83,4 +86,11 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: | + echo "Current branch:" + git rev-parse --abbrev-ref HEAD + echo "Syncing $BRANCH to S3" + aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete + echo "Sync completed" + echo "Cat 3 files from the book" + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat diff --git a/.github/workflows/translate_fr.yml b/.github/workflows/translate_fr.yml index 2a8dcb8dd..2d57d453a 100644 --- a/.github/workflows/translate_fr.yml +++ b/.github/workflows/translate_fr.yml @@ -64,7 +64,10 @@ jobs: - name: Build mdBook run: | + git checkout "$BRANCH" + git pull 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: | @@ -84,4 +87,11 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: | + echo "Current branch:" + git rev-parse --abbrev-ref HEAD + echo "Syncing $BRANCH to S3" + aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete + echo "Sync completed" + echo "Cat 3 files from the book" + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat diff --git a/.github/workflows/translate_hi.yml b/.github/workflows/translate_hi.yml index 4dcdb1f36..bed4c863a 100644 --- a/.github/workflows/translate_hi.yml +++ b/.github/workflows/translate_hi.yml @@ -64,7 +64,10 @@ jobs: - name: Build mdBook run: | + git checkout "$BRANCH" + git pull 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: | @@ -84,4 +87,11 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: | + echo "Current branch:" + git rev-parse --abbrev-ref HEAD + echo "Syncing $BRANCH to S3" + aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete + echo "Sync completed" + echo "Cat 3 files from the book" + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat diff --git a/.github/workflows/translate_it.yml b/.github/workflows/translate_it.yml index 4f6e2ecd5..5b5faac9d 100644 --- a/.github/workflows/translate_it.yml +++ b/.github/workflows/translate_it.yml @@ -64,7 +64,10 @@ jobs: - name: Build mdBook run: | + git checkout "$BRANCH" + git pull 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: | @@ -84,4 +87,11 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: | + echo "Current branch:" + git rev-parse --abbrev-ref HEAD + echo "Syncing $BRANCH to S3" + aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete + echo "Sync completed" + echo "Cat 3 files from the book" + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat diff --git a/.github/workflows/translate_ja.yml b/.github/workflows/translate_ja.yml index dc15460c3..8546358fe 100644 --- a/.github/workflows/translate_ja.yml +++ b/.github/workflows/translate_ja.yml @@ -64,7 +64,10 @@ jobs: - name: Build mdBook run: | + git checkout "$BRANCH" + git pull 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: | @@ -84,4 +87,11 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: | + echo "Current branch:" + git rev-parse --abbrev-ref HEAD + echo "Syncing $BRANCH to S3" + aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete + echo "Sync completed" + echo "Cat 3 files from the book" + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat diff --git a/.github/workflows/translate_ko.yml b/.github/workflows/translate_ko.yml index 7b97e2f86..421195b63 100644 --- a/.github/workflows/translate_ko.yml +++ b/.github/workflows/translate_ko.yml @@ -64,7 +64,10 @@ jobs: - name: Build mdBook run: | + git checkout "$BRANCH" + git pull 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: | @@ -84,4 +87,11 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: | + echo "Current branch:" + git rev-parse --abbrev-ref HEAD + echo "Syncing $BRANCH to S3" + aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete + echo "Sync completed" + echo "Cat 3 files from the book" + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat diff --git a/.github/workflows/translate_pl.yml b/.github/workflows/translate_pl.yml index b4262836a..ab152e37d 100644 --- a/.github/workflows/translate_pl.yml +++ b/.github/workflows/translate_pl.yml @@ -64,7 +64,10 @@ jobs: - name: Build mdBook run: | + git checkout "$BRANCH" + git pull 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: | @@ -84,4 +87,11 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: | + echo "Current branch:" + git rev-parse --abbrev-ref HEAD + echo "Syncing $BRANCH to S3" + aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete + echo "Sync completed" + echo "Cat 3 files from the book" + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat diff --git a/.github/workflows/translate_pt.yml b/.github/workflows/translate_pt.yml index 52d5c273d..4fa95cb0d 100644 --- a/.github/workflows/translate_pt.yml +++ b/.github/workflows/translate_pt.yml @@ -64,7 +64,10 @@ jobs: - name: Build mdBook run: | + git checkout "$BRANCH" + git pull 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: | @@ -84,4 +87,11 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: | + echo "Current branch:" + git rev-parse --abbrev-ref HEAD + echo "Syncing $BRANCH to S3" + aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete + echo "Sync completed" + echo "Cat 3 files from the book" + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat diff --git a/.github/workflows/translate_sr.yml b/.github/workflows/translate_sr.yml index a35bfcce4..895a5d471 100644 --- a/.github/workflows/translate_sr.yml +++ b/.github/workflows/translate_sr.yml @@ -64,7 +64,10 @@ jobs: - name: Build mdBook run: | + git checkout "$BRANCH" + git pull 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: | @@ -84,4 +87,11 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: | + echo "Current branch:" + git rev-parse --abbrev-ref HEAD + echo "Syncing $BRANCH to S3" + aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete + echo "Sync completed" + echo "Cat 3 files from the book" + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat diff --git a/.github/workflows/translate_sw.yml b/.github/workflows/translate_sw.yml index cd0c56638..fd94d13a4 100644 --- a/.github/workflows/translate_sw.yml +++ b/.github/workflows/translate_sw.yml @@ -64,7 +64,10 @@ jobs: - name: Build mdBook run: | + git checkout "$BRANCH" + git pull 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: | @@ -84,4 +87,11 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: | + echo "Current branch:" + git rev-parse --abbrev-ref HEAD + echo "Syncing $BRANCH to S3" + aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete + echo "Sync completed" + echo "Cat 3 files from the book" + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat diff --git a/.github/workflows/translate_tr.yml b/.github/workflows/translate_tr.yml index 90196d6a2..437a6f96c 100644 --- a/.github/workflows/translate_tr.yml +++ b/.github/workflows/translate_tr.yml @@ -64,7 +64,10 @@ jobs: - name: Build mdBook run: | + git checkout "$BRANCH" + git pull 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: | @@ -84,4 +87,11 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: | + echo "Current branch:" + git rev-parse --abbrev-ref HEAD + echo "Syncing $BRANCH to S3" + aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete + echo "Sync completed" + echo "Cat 3 files from the book" + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat diff --git a/.github/workflows/translate_uk.yml b/.github/workflows/translate_uk.yml index d2584be66..11c70fe83 100644 --- a/.github/workflows/translate_uk.yml +++ b/.github/workflows/translate_uk.yml @@ -64,7 +64,10 @@ jobs: - name: Build mdBook run: | + git checkout "$BRANCH" + git pull 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: | @@ -84,4 +87,11 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: | + echo "Current branch:" + git rev-parse --abbrev-ref HEAD + echo "Syncing $BRANCH to S3" + aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete + echo "Sync completed" + echo "Cat 3 files from the book" + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat diff --git a/.github/workflows/translate_zh.yml b/.github/workflows/translate_zh.yml index 6e5d69966..1ba872c97 100644 --- a/.github/workflows/translate_zh.yml +++ b/.github/workflows/translate_zh.yml @@ -64,7 +64,10 @@ jobs: - name: Build mdBook run: | + git checkout "$BRANCH" + git pull 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: | @@ -84,4 +87,11 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete + run: | + echo "Current branch:" + git rev-parse --abbrev-ref HEAD + echo "Syncing $BRANCH to S3" + aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete + echo "Sync completed" + echo "Cat 3 files from the book" + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat