Skip to content

Commit

Permalink
fix(ci): replace the correct files for Layer ARN
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfonseca committed Apr 14, 2023
1 parent 32b1c13 commit a76a554
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/reusable_update_v2_layer_arn_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
6 changes: 3 additions & 3 deletions layer/scripts/update_layer_arn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a76a554

Please sign in to comment.