Skip to content

Commit 4ba7a0b

Browse files
reakaleekxrmx
andauthored
Automate collapsing ARN table in release notes (#2071)
* Automate collapsing ARN table in release notes * Apply suggestions from code review --------- Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
1 parent 8646535 commit 4ba7a0b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.ci/create-arn-table.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ AWS_FOLDER=${AWS_FOLDER?:No aws folder provided}
1010
ARN_FILE=".arn-file.md"
1111

1212
{
13-
echo "### Elastic APM Python agent layer ARNs"
13+
echo "<details>"
14+
echo "<summary>Elastic APM Python agent layer ARNs</summary>"
1415
echo ''
1516
echo '|Region|ARN|'
1617
echo '|------|---|'
@@ -22,4 +23,8 @@ for f in $(ls "${AWS_FOLDER}"); do
2223
echo "|${f}|${LAYER_VERSION_ARN}|" >> "${ARN_FILE}"
2324
done
2425

25-
echo '' >> "${ARN_FILE}"
26+
{
27+
echo ''
28+
echo '</details>'
29+
echo ''
30+
} >> "${ARN_FILE}"

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,4 +198,4 @@ If you have commit access, the process is as follows:
198198
1. After tests pass, Github Actions will automatically build and push the new release to PyPI.
199199
1. Edit and publish the [draft Github release](https://github.com/elastic/apm-agent-python/releases)
200200
created by Github Actions. Substitute the generated changelog with one hand written into the body of the
201-
release and move the agent layer ARNs under a `<details>` block with a `summary`.
201+
release.

0 commit comments

Comments
 (0)