Skip to content

Commit 36a0803

Browse files
Fix arn table file generation file path (#2525)
* Ensure the arn table file is being generated in the github workspace * Use realpath instead changing directory
1 parent 7bbd56f commit 36a0803

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.ci/create-arn-table.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ set -o pipefail
77
# AWS_FOLDER - that's the location of the publish-layer-version output for each region
88

99
AWS_FOLDER=${AWS_FOLDER?:No aws folder provided}
10-
ARN_FILE=".arn-file.md"
10+
# Get the repository root directory (where .git is located)
11+
REPO_ROOT="$(realpath $(dirname "${BASH_SOURCE[0]}")/..)"
12+
ARN_FILE="${REPO_ROOT}/.arn-file.md"
1113

1214
{
1315
echo "<details>"
@@ -28,3 +30,5 @@ done
2830
echo '</details>'
2931
echo ''
3032
} >> "${ARN_FILE}"
33+
34+
echo "INFO: Created ARN table at ${ARN_FILE}"

0 commit comments

Comments
 (0)