Skip to content

Commit

Permalink
Update Flathub apps list only when new apps detected #2007
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartFinn committed Dec 2, 2023
1 parent 92805f7 commit f46e140
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tools/flathub_list_updater.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,10 @@ env MARKDOWN=1 bash "$SCRIPT_DIR/missing_flathub_apps.sh" > "$missing_apps_list"
comm -13 <(sort "$unchecked_apps_list") <(sort "$missing_apps_list") |
sed 's/\[ \][ ]//' > "$new_apps_list"

if ! diff -u -w "$unchecked_apps_list" "$missing_apps_list" >&2; then
if [ -s "$new_apps_list" ]; then
echo "Uptading issue #${API_ENDPOINT##*/} ..." >&2
_api_post "$API_ENDPOINT" "$missing_apps_list" "$completed_apps_list"
fi

if [ -s "$new_apps_list" ]; then
echo "Add a comment with new apps list ..." >&2
_api_post "$API_ENDPOINT/comments" "$new_apps_list"
fi

0 comments on commit f46e140

Please sign in to comment.