Skip to content

Add dumb icons

Add dumb icons #1

Workflow file for this run

name: "Add dumb icons"
on:
#schedule:
# - cron: "*/15 * * * *"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
jobs:
sync-files:
name: "Copy dumb icon where missing"
runs-on: ubuntu-latest
steps:
- name: "Checkout source repository"
uses: actions/checkout@v4
- name: "Start copy"
run: |
LIST=$(curl -Ls https://raw.githubusercontent.com/ivan-hc/AM/main/programs/x86_64-apps)
[ -z "$LIST" ] && exit 1
MDS=$(ls apps/* | sed 's:.*/::; s/.md$//g')
for m in $MDS; do
if ! test -f icons/"$m".png; then
cp -r no-icon.png "icons/$m.png"
fi
done
rm -f icons/*.md
- name: "Push to Source"
run: |
git config --global user.name "Portable-Linux-Apps"
git config --global user.email "noreply@github.com"
git add icons
if git diff-index --quiet HEAD; then
echo "No changes to commit." >> $GITHUB_STEP_SUMMARY
else
git commit -m "Add dumb icons"
git push && echo "Sync to Source succeeded" >> $GITHUB_STEP_SUMMARY
fi