Skip to content

Commit

Permalink
CMDCT-4105 - adds raw output to jq for consistency and non-breaking w…
Browse files Browse the repository at this point in the history
…hen we add playwright
  • Loading branch information
peoplespete committed Jan 22, 2025
1 parent 7791707 commit dfcf559
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ permissions:
contents: read
actions: read

env:
SERVERLESS_LICENSE_KEY: ${{ secrets.SERVERLESS_LICENSE_KEY }}

jobs:
destroy:
# Protected branches should be designated as such in the GitHub UI.
Expand Down
2 changes: 1 addition & 1 deletion services/output.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ if [ $output = "url" ]; then
fi

cd $service
serverless info --stage $stage --json | jq --arg output $output '.outputs[] | select(.OutputKey == $output) | .OutputValue'
serverless info --stage $stage --json | jq --raw-output --arg output $output '.outputs[] | select(.OutputKey == $output) | .OutputValue'
cd ..
4 changes: 3 additions & 1 deletion services/uploads/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ custom:
# This script is run locally when running 'serverless deploy'
package:initialize: |
set -e
curl -L --output lambda_layer.zip https://github.com/CMSgov/lambda-clamav-layer/releases/download/0.7/lambda_layer.zip
# curl -L --output lambda_layer.zip https://github.com/CMSgov/lambda-clamav-layer/releases/download/0.7/lambda_layer.zip
# cp lambda_layer.zip services/uploads/lambda_layer.zip
curl -L --output services/uploads/lambda_layer.zip https://github.com/CMSgov/lambda-clamav-layer/releases/download/0.7/lambda_layer.zip
deploy:finalize: |
rm lambda_layer.zip
aws lambda invoke --region ${self:provider.region} --function-name ${self:service}-${self:custom.stage}-avDownloadDefinitions --invocation-type Event response.json
Expand Down

0 comments on commit dfcf559

Please sign in to comment.