Skip to content

Commit

Permalink
Update sam translator parsing (#2842)
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong authored Aug 11, 2023
1 parent 32723f3 commit c52494e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/maintenance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
id: maintenance
run: |
latest_sam_cli=`curl -s https://api.github.com/repos/aws/aws-sam-cli/releases/latest | jq -r .tag_name | cut -c 2-`
latest=`curl "https://pypi.org/pypi/aws-sam-cli/$latest_sam_cli/json" -s | jq -r '.info.requires_dist[] | select(contains("aws-sam-translator"))' | cut -c 23- | rev | cut -c 2- | rev`
latest=`curl "https://pypi.org/pypi/aws-sam-cli/$latest_sam_cli/json" -s | jq -r '.info.requires_dist[] | select(contains("aws-sam-translator"))' | cut -c 22-`
sed -i -E "s/aws-sam-translator>=[0-9.]+/aws-sam-translator>=$latest/" setup.py
pip install -e .
rm -rf src/cfnlint/data/DownloadsMetadata/*
Expand Down

0 comments on commit c52494e

Please sign in to comment.