Skip to content

Commit f0783a8

Browse files
committed
f
1 parent d883b4f commit f0783a8

16 files changed

+176
-16
lines changed

.github/workflows/translate_af.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,11 @@ jobs:
6464
6565
- name: Build mdBook
6666
run: |
67+
git checkout "$BRANCH"
68+
git pull
6769
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)
6870
71+
6972
- name: Update searchindex.js in repo
7073
run: |
7174
(git checkout $BRANCH
@@ -84,4 +87,11 @@ jobs:
8487

8588
# Sync the build to S3
8689
- name: Sync to S3
87-
run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete
90+
run: |
91+
echo "Current branch:"
92+
git rev-parse --abbrev-ref HEAD
93+
echo "Syncing $BRANCH to S3"
94+
aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
95+
echo "Sync completed"
96+
echo "Cat 3 files from the book"
97+
find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat

.github/workflows/translate_de.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ jobs:
6464
6565
- name: Build mdBook
6666
run: |
67+
git checkout "$BRANCH"
68+
git pull
6769
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)
70+
6871
6972
- name: Update searchindex.js in repo
7073
run: |
@@ -84,4 +87,11 @@ jobs:
8487

8588
# Sync the build to S3
8689
- name: Sync to S3
87-
run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete
90+
run: |
91+
echo "Current branch:"
92+
git rev-parse --abbrev-ref HEAD
93+
echo "Syncing $BRANCH to S3"
94+
aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
95+
echo "Sync completed"
96+
echo "Cat 3 files from the book"
97+
find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat

.github/workflows/translate_el.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ jobs:
6464
6565
- name: Build mdBook
6666
run: |
67+
git checkout "$BRANCH"
68+
git pull
6769
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)
70+
6871
6972
- name: Update searchindex.js in repo
7073
run: |
@@ -84,4 +87,11 @@ jobs:
8487

8588
# Sync the build to S3
8689
- name: Sync to S3
87-
run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete
90+
run: |
91+
echo "Current branch:"
92+
git rev-parse --abbrev-ref HEAD
93+
echo "Syncing $BRANCH to S3"
94+
aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
95+
echo "Sync completed"
96+
echo "Cat 3 files from the book"
97+
find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat

.github/workflows/translate_es.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ jobs:
6363
6464
- name: Build mdBook
6565
run: |
66+
git checkout "$BRANCH"
67+
git pull
6668
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)
69+
6770
6871
- name: Update searchindex.js in repo
6972
run: |
@@ -83,4 +86,11 @@ jobs:
8386

8487
# Sync the build to S3
8588
- name: Sync to S3
86-
run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete
89+
run: |
90+
echo "Current branch:"
91+
git rev-parse --abbrev-ref HEAD
92+
echo "Syncing $BRANCH to S3"
93+
aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
94+
echo "Sync completed"
95+
echo "Cat 3 files from the book"
96+
find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat

.github/workflows/translate_fr.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ jobs:
6464
6565
- name: Build mdBook
6666
run: |
67+
git checkout "$BRANCH"
68+
git pull
6769
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)
70+
6871
6972
- name: Update searchindex.js in repo
7073
run: |
@@ -84,4 +87,11 @@ jobs:
8487

8588
# Sync the build to S3
8689
- name: Sync to S3
87-
run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete
90+
run: |
91+
echo "Current branch:"
92+
git rev-parse --abbrev-ref HEAD
93+
echo "Syncing $BRANCH to S3"
94+
aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
95+
echo "Sync completed"
96+
echo "Cat 3 files from the book"
97+
find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat

.github/workflows/translate_hi.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ jobs:
6464
6565
- name: Build mdBook
6666
run: |
67+
git checkout "$BRANCH"
68+
git pull
6769
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)
70+
6871
6972
- name: Update searchindex.js in repo
7073
run: |
@@ -84,4 +87,11 @@ jobs:
8487

8588
# Sync the build to S3
8689
- name: Sync to S3
87-
run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete
90+
run: |
91+
echo "Current branch:"
92+
git rev-parse --abbrev-ref HEAD
93+
echo "Syncing $BRANCH to S3"
94+
aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
95+
echo "Sync completed"
96+
echo "Cat 3 files from the book"
97+
find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat

.github/workflows/translate_it.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ jobs:
6464
6565
- name: Build mdBook
6666
run: |
67+
git checkout "$BRANCH"
68+
git pull
6769
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)
70+
6871
6972
- name: Update searchindex.js in repo
7073
run: |
@@ -84,4 +87,11 @@ jobs:
8487

8588
# Sync the build to S3
8689
- name: Sync to S3
87-
run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete
90+
run: |
91+
echo "Current branch:"
92+
git rev-parse --abbrev-ref HEAD
93+
echo "Syncing $BRANCH to S3"
94+
aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
95+
echo "Sync completed"
96+
echo "Cat 3 files from the book"
97+
find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat

.github/workflows/translate_ja.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ jobs:
6464
6565
- name: Build mdBook
6666
run: |
67+
git checkout "$BRANCH"
68+
git pull
6769
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)
70+
6871
6972
- name: Update searchindex.js in repo
7073
run: |
@@ -84,4 +87,11 @@ jobs:
8487

8588
# Sync the build to S3
8689
- name: Sync to S3
87-
run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete
90+
run: |
91+
echo "Current branch:"
92+
git rev-parse --abbrev-ref HEAD
93+
echo "Syncing $BRANCH to S3"
94+
aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
95+
echo "Sync completed"
96+
echo "Cat 3 files from the book"
97+
find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat

.github/workflows/translate_ko.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ jobs:
6464
6565
- name: Build mdBook
6666
run: |
67+
git checkout "$BRANCH"
68+
git pull
6769
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)
70+
6871
6972
- name: Update searchindex.js in repo
7073
run: |
@@ -84,4 +87,11 @@ jobs:
8487

8588
# Sync the build to S3
8689
- name: Sync to S3
87-
run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete
90+
run: |
91+
echo "Current branch:"
92+
git rev-parse --abbrev-ref HEAD
93+
echo "Syncing $BRANCH to S3"
94+
aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
95+
echo "Sync completed"
96+
echo "Cat 3 files from the book"
97+
find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat

.github/workflows/translate_pl.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ jobs:
6464
6565
- name: Build mdBook
6666
run: |
67+
git checkout "$BRANCH"
68+
git pull
6769
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)
70+
6871
6972
- name: Update searchindex.js in repo
7073
run: |
@@ -84,4 +87,11 @@ jobs:
8487

8588
# Sync the build to S3
8689
- name: Sync to S3
87-
run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete
90+
run: |
91+
echo "Current branch:"
92+
git rev-parse --abbrev-ref HEAD
93+
echo "Syncing $BRANCH to S3"
94+
aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
95+
echo "Sync completed"
96+
echo "Cat 3 files from the book"
97+
find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat

0 commit comments

Comments
 (0)