From 14aae01deef062525babffd4bee458e75b383735 Mon Sep 17 00:00:00 2001 From: Carlos Polop Date: Tue, 31 Dec 2024 18:09:32 +0100 Subject: [PATCH] update workflows --- .github/workflows/translate_af.yml | 13 +------------ .github/workflows/translate_de.yml | 2 +- .github/workflows/translate_el.yml | 2 +- .github/workflows/translate_es.yml | 2 +- .github/workflows/translate_fr.yml | 2 +- .github/workflows/translate_in.yml | 2 +- .github/workflows/translate_it.yml | 2 +- .github/workflows/translate_ja.yml | 2 +- .github/workflows/translate_kr.yml | 2 +- .github/workflows/translate_pl.yml | 2 +- .github/workflows/translate_pt.yml | 2 +- .github/workflows/translate_sr.yml | 2 +- .github/workflows/translate_sw.yml | 2 +- .github/workflows/translate_tr.yml | 2 +- .github/workflows/translate_uk.yml | 2 +- .github/workflows/translate_zh.yml | 2 +- 16 files changed, 16 insertions(+), 27 deletions(-) diff --git a/.github/workflows/translate_af.yml b/.github/workflows/translate_af.yml index cf86b7d32..2be7e6458 100644 --- a/.github/workflows/translate_af.yml +++ b/.github/workflows/translate_af.yml @@ -112,15 +112,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/en --delete - - # Login in AWs - - name: Configure AWS credentials using OIDC - uses: aws-actions/configure-aws-credentials@v3 - with: - role-to-assume: ${{ secrets.AWS_ROLE_ARN }} - aws-region: us-east-1 - - # Sync the build to S3 - - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/en --delete \ No newline at end of file + run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete diff --git a/.github/workflows/translate_de.yml b/.github/workflows/translate_de.yml index b38a93eec..4587262ff 100644 --- a/.github/workflows/translate_de.yml +++ b/.github/workflows/translate_de.yml @@ -112,4 +112,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/en --delete + run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete diff --git a/.github/workflows/translate_el.yml b/.github/workflows/translate_el.yml index 6e926702b..ccfa98f97 100644 --- a/.github/workflows/translate_el.yml +++ b/.github/workflows/translate_el.yml @@ -112,4 +112,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/en --delete \ No newline at end of file + run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete \ No newline at end of file diff --git a/.github/workflows/translate_es.yml b/.github/workflows/translate_es.yml index b89f62c46..ac22774eb 100644 --- a/.github/workflows/translate_es.yml +++ b/.github/workflows/translate_es.yml @@ -112,4 +112,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/en --delete + run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete diff --git a/.github/workflows/translate_fr.yml b/.github/workflows/translate_fr.yml index 9bac94f68..3485b071d 100644 --- a/.github/workflows/translate_fr.yml +++ b/.github/workflows/translate_fr.yml @@ -112,4 +112,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/en --delete + run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete diff --git a/.github/workflows/translate_in.yml b/.github/workflows/translate_in.yml index 37d876c4c..2e17365ef 100644 --- a/.github/workflows/translate_in.yml +++ b/.github/workflows/translate_in.yml @@ -112,4 +112,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/en --delete + run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete diff --git a/.github/workflows/translate_it.yml b/.github/workflows/translate_it.yml index be6ee9ea6..9ae070286 100644 --- a/.github/workflows/translate_it.yml +++ b/.github/workflows/translate_it.yml @@ -112,4 +112,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/en --delete \ No newline at end of file + run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete \ No newline at end of file diff --git a/.github/workflows/translate_ja.yml b/.github/workflows/translate_ja.yml index 08ef94cdf..422798479 100644 --- a/.github/workflows/translate_ja.yml +++ b/.github/workflows/translate_ja.yml @@ -112,4 +112,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/en --delete + run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete diff --git a/.github/workflows/translate_kr.yml b/.github/workflows/translate_kr.yml index 3d7fc8b72..fa67b5bf7 100644 --- a/.github/workflows/translate_kr.yml +++ b/.github/workflows/translate_kr.yml @@ -112,4 +112,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/en --delete \ No newline at end of file + run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete \ No newline at end of file diff --git a/.github/workflows/translate_pl.yml b/.github/workflows/translate_pl.yml index 5bbf23ab7..f0fea9a66 100644 --- a/.github/workflows/translate_pl.yml +++ b/.github/workflows/translate_pl.yml @@ -112,4 +112,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/en --delete \ No newline at end of file + run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete \ No newline at end of file diff --git a/.github/workflows/translate_pt.yml b/.github/workflows/translate_pt.yml index cce3b82b2..e5e124e3b 100644 --- a/.github/workflows/translate_pt.yml +++ b/.github/workflows/translate_pt.yml @@ -112,4 +112,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/en --delete + run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete diff --git a/.github/workflows/translate_sr.yml b/.github/workflows/translate_sr.yml index 0944d1ee0..60fd6d3c4 100644 --- a/.github/workflows/translate_sr.yml +++ b/.github/workflows/translate_sr.yml @@ -112,4 +112,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/en --delete \ No newline at end of file + run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete \ No newline at end of file diff --git a/.github/workflows/translate_sw.yml b/.github/workflows/translate_sw.yml index f668c5b16..f20545454 100644 --- a/.github/workflows/translate_sw.yml +++ b/.github/workflows/translate_sw.yml @@ -112,4 +112,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/en --delete \ No newline at end of file + run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete \ No newline at end of file diff --git a/.github/workflows/translate_tr.yml b/.github/workflows/translate_tr.yml index 35e433e58..353b823f4 100644 --- a/.github/workflows/translate_tr.yml +++ b/.github/workflows/translate_tr.yml @@ -112,4 +112,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/en --delete \ No newline at end of file + run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete \ No newline at end of file diff --git a/.github/workflows/translate_uk.yml b/.github/workflows/translate_uk.yml index 82e4ad553..d5c436dff 100644 --- a/.github/workflows/translate_uk.yml +++ b/.github/workflows/translate_uk.yml @@ -112,4 +112,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/en --delete + run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete diff --git a/.github/workflows/translate_zh.yml b/.github/workflows/translate_zh.yml index 4d70c7a16..00044ef25 100644 --- a/.github/workflows/translate_zh.yml +++ b/.github/workflows/translate_zh.yml @@ -112,4 +112,4 @@ jobs: # Sync the build to S3 - name: Sync to S3 - run: aws s3 sync ./book s3://hacktricks-cloud/en --delete \ No newline at end of file + run: aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete \ No newline at end of file