Skip to content

Commit

Permalink
fix(pdk-upgrade): sort upgraded entries in summary
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Jul 11, 2024
1 parent 85b6200 commit e3eda8a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pdk-upgrade/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ runs:
REPORT_FILE: ${{ inputs.report-file }}
# language=bash
run: |
JSON=$(cat $REPORT_FILE | jq -c)
JSON=$(cat $REPORT_FILE | jq -c 'sort_by(.name)')
echo "## PDK upgrade summary" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
Expand All @@ -110,7 +110,6 @@ runs:
echo "| Package | Old version | New version |" >> $GITHUB_STEP_SUMMARY
echo "| ------- | ----------- | ----------- |" >> $GITHUB_STEP_SUMMARY
# For each item in the report json, print the diff
for row in $(echo "${JSON}" | jq -cr '.[]'); do
NAME=$(echo $row | jq -r '.name')
OLD_VERSION=$(echo $row | jq -r '.oldVersion')
Expand Down

0 comments on commit e3eda8a

Please sign in to comment.