mirror of
https://github.com/HackTricks-wiki/hacktricks-cloud.git
synced 2026-06-12 11:01:38 -07:00
f
This commit is contained in:
@@ -63,7 +63,7 @@ jobs:
|
|||||||
echo "Continuing with translation workflow"
|
echo "Continuing with translation workflow"
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -249,7 +249,7 @@ jobs:
|
|||||||
|
|
||||||
# Login in AWs
|
# Login in AWs
|
||||||
- name: Configure AWS credentials using OIDC
|
- name: Configure AWS credentials using OIDC
|
||||||
uses: aws-actions/configure-aws-credentials@v3
|
uses: aws-actions/configure-aws-credentials@v6
|
||||||
with:
|
with:
|
||||||
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
|
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
|
||||||
aws-region: us-east-1
|
aws-region: us-east-1
|
||||||
@@ -276,6 +276,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Refresh root sitemap index
|
- name: Refresh root sitemap index
|
||||||
id: root_sitemap
|
id: root_sitemap
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
LANGS=$(aws s3api list-objects-v2 --bucket hacktricks-cloud --delimiter / --query 'CommonPrefixes[].Prefix' --output text | tr '\t' '\n' | sed 's:/$::' | grep -E '^[a-z]{2}$' | sort | paste -sd, - || true)
|
LANGS=$(aws s3api list-objects-v2 --bucket hacktricks-cloud --delimiter / --query 'CommonPrefixes[].Prefix' --output text | tr '\t' '\n' | sed 's:/$::' | grep -E '^[a-z]{2}$' | sort | paste -sd, - || true)
|
||||||
@@ -292,6 +293,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Invalidate CloudFront HTML and SEO assets
|
- name: Invalidate CloudFront HTML and SEO assets
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
paths=("/$BRANCH/*" "/$BRANCH/sitemap.xml")
|
paths=("/$BRANCH/*" "/$BRANCH/sitemap.xml")
|
||||||
|
|||||||
Reference in New Issue
Block a user