Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
fix: the arn shows up in 2 spots
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-audi committed May 14, 2024
1 parent 4d7a1fc commit 31c5818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
sam package --output-template-file .aws-sam/packaged.yaml
result=$(sam publish --template .aws-sam/packaged.yaml)
echo "$result"
arn=$(echo "$result" | grep -oP 'arn:aws:serverlessrepo:[^ ]+')
arn=$(echo "$result" | grep -oP 'published-applications/arn:aws:serverlessrepo:[^ ]+')
echo "arn: $arn"
arn_clean=$(echo "$arn" | sed 's/[\"'\'']//g' | tr -d '[:space:]')
echo "arn_clean: $arn_clean"
Expand Down

0 comments on commit 31c5818

Please sign in to comment.