File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Update Lists"
2+
3+ on :
4+ schedule :
5+ - cron : " 0 * * * *"
6+
7+ workflow_dispatch :
8+
9+ concurrency :
10+ group : ${{ github.workflow }}-${{ github.ref }}
11+ cancel-in-progress : true
12+
13+ permissions :
14+ contents : write
15+
16+ jobs :
17+ sync-files :
18+ name : " Run sync"
19+ runs-on : ubuntu-22.04
20+ steps :
21+ - name : " Checkout source repository"
22+ uses : actions/checkout@v4
23+
24+ - name : " Run lister"
25+ run : |
26+ wget -q https://raw.githubusercontent.com/ivan-hc/AM/main/tools/am2pla-site && chmod a+x ./am2pla-site || exit 1
27+ ./am2pla-site
28+ rm -f ./am2pla-site
29+ mv "$(xdg-user-dir DESKTOP)"/*.md ./
30+
31+ - name : " Push to Source"
32+ run : |
33+ git config --global user.name "Portable-Linux-Apps"
34+ git config --global user.email "noreply@github.com"
35+ git add *.md
36+ if git diff-index --quiet HEAD; then
37+ echo "No changes to commit." >> $GITHUB_STEP_SUMMARY
38+ else
39+ git commit -m "Sync files from source repository"
40+ git push && echo "Sync to Source succeeded" >> $GITHUB_STEP_SUMMARY
41+ fi
You can’t perform that action at this time.
0 commit comments