Skip to content

Workflow file for this run

name: "Sync Apps Lists"

Check failure on line 1 in .github/workflows/lister.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/lister.yml

Invalid workflow file

You have an error in your yaml syntax
# You have to create PAT (Personal Access Token) with write abillity to target repo
# Save it as secret in repository where action will run (source) with name 'TARGET_REPO_TOKEN'
# Change all paths in script as needed!
on:
push:
branches: main
paths:
- 'programs/**'
- 'programs/**'
- 'programs/**'
pattern: *-apps
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
sync-files:
name: "Run sync"
runs-on: ubuntu-22.04
steps:
- name: "Checkout source repository"
uses: actions/checkout@v4
- name: "Run lister"
run: |
cd programs
chmod a+x appimage-lister-uniq.sh
./appimage-lister-uniq.sh
- name: "Commit and Push Changes"
run: |
cd ../
git config user.name "GitHub Actions Bot"
git config user.email "[email protected]"
git pull --rebase
git add .
if git diff-index --quiet HEAD; then
echo "No changes to commit." >> $GITHUB_STEP_SUMMARY
else
git commit -m "Sync Apps"
git push && echo "Sync succeeded" >> $GITHUB_STEP_SUMMARY
fi