From a76a554ca89042e37c63caf3b39421310035d8ce Mon Sep 17 00:00:00 2001 From: Ruben Fonseca Date: Fri, 14 Apr 2023 12:40:46 +0200 Subject: [PATCH] fix(ci): replace the correct files for Layer ARN --- .github/workflows/reusable_update_v2_layer_arn_docs.yml | 2 +- layer/scripts/update_layer_arn.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/reusable_update_v2_layer_arn_docs.yml b/.github/workflows/reusable_update_v2_layer_arn_docs.yml index 5e6a235654f..142d0a32e75 100644 --- a/.github/workflows/reusable_update_v2_layer_arn_docs.yml +++ b/.github/workflows/reusable_update_v2_layer_arn_docs.yml @@ -46,7 +46,7 @@ jobs: run: | HAS_CHANGE=$(git status --porcelain) test -z "${HAS_CHANGE}" && echo "Nothing to update" && exit 0 - git add docs/index.md docs/core/logger.md docs/core/tracer.md docs/core/metrics.md + git add docs/index.md examples git commit -m "chore: update v2 layer ARN on documentation" git pull origin "${BRANCH}" # prevents concurrent branch update failing push git push origin HEAD:refs/heads/"${BRANCH}" diff --git a/layer/scripts/update_layer_arn.sh b/layer/scripts/update_layer_arn.sh index 0ab86e58af4..55734941839 100755 --- a/layer/scripts/update_layer_arn.sh +++ b/layer/scripts/update_layer_arn.sh @@ -68,9 +68,9 @@ for file in $files; do sed -i -e "s/$prefix_pseudo_region:[[:digit:]][[:digit:]]*/$line_pseudo_region/g" docs/index.md # The same strings can also be found in examples on Logger, Tracer and Metrics - sed -i -e "s/$prefix_pseudo_region:[[:digit:]][[:digit:]]*/$line_pseudo_region/g" docs/core/logger.md - sed -i -e "s/$prefix_pseudo_region:[[:digit:]][[:digit:]]*/$line_pseudo_region/g" docs/core/metrics.md - sed -i -e "s/$prefix_pseudo_region:[[:digit:]][[:digit:]]*/$line_pseudo_region/g" docs/core/tracer.md + sed -i -e "s/$prefix_pseudo_region:[[:digit:]][[:digit:]]*/$line_pseudo_region/g" examples/logger/sam/template.yaml + sed -i -e "s/$prefix_pseudo_region:[[:digit:]][[:digit:]]*/$line_pseudo_region/g" examples/metrics/sam/template.yaml + sed -i -e "s/$prefix_pseudo_region:[[:digit:]][[:digit:]]*/$line_pseudo_region/g" examples/tracer/sam/template.yaml done fi done