Skip to content

Commit 87fa6dd

Browse files
authored
Update lister.yml - keep an offline list of AppImages from AM
1 parent d93ada4 commit 87fa6dd

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/lister.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ jobs:
2121
- name: "Checkout source repository"
2222
uses: actions/checkout@v4
2323

24+
- name: "Prepare AppImages list"
25+
run: |
26+
APPIMAGES_LIST=$(curl -Ls https://raw.githubusercontent.com/ivan-hc/AM/main/programs/x86_64-appimages)
27+
if [ -n "$APPIMAGES_LIST" ]; then
28+
APPIMAGES_DOTS_NUMB=$(echo "$APPIMAGES_LIST" | grep "^◆ " | wc -l)
29+
if [ "$APPIMAGES_DOTS_NUMB" -gt "1500" ]; then
30+
echo "$APPIMAGES_LIST" > ./x86_64-appimages
31+
fi
32+
fi
33+
2434
- name: "Run lister"
2535
run: |
2636
sed -i 's/^cd "$(xdg-user-dir DESKTOP)"/#cd "$(xdg-user-dir DESKTOP)"/g' ./am2pla-site
@@ -31,7 +41,7 @@ jobs:
3141
run: |
3242
git config --global user.name "Portable-Linux-Apps"
3343
git config --global user.email "noreply@github.com"
34-
git add *.md *.json am2pla-site
44+
git add *.md *.json am2pla-site x86_64-appimages
3545
if git diff-index --quiet HEAD; then
3646
echo "No changes to commit." >> $GITHUB_STEP_SUMMARY
3747
else

0 commit comments

Comments
 (0)