Skip to content

Commit

Permalink
ci: optimizing workflow processes
Browse files Browse the repository at this point in the history
- remove star
- add update log
  • Loading branch information
xunpod committed Jun 17, 2024
1 parent 40edd18 commit fe7f75f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/auto-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ on:
push:
branches:
- "spider"
watch:
types: started
schedule:
- cron: '0 0 */1 * *'
permissions:
Expand All @@ -34,10 +32,12 @@ jobs:
- name: Commit and push changes
id: commit
run: |
echo -e "龙芯应用合作社有应用更新啦!\n " > updatelog.txt
awk -F, '{print "-", $1, $2, $4}' loongapplist-upgrade.csv >> updatelog.txt
git config --global user.name "Github Action"
git config --global user.email "[email protected]"
git add loongapplist-latest.csv
git commit -m "auto update" -a && git push && echo "A=1" >> $GITHUB_ENV || echo "no updates"
git commit -F updatelog.txt && git push && echo "A=1" >> $GITHUB_ENV || echo "no updates"
- name: Set date env
run: |
cp loongapplist-latest.csv loongapplist-latest-$(date '+%Y-%m-%d').csv
Expand All @@ -63,6 +63,7 @@ jobs:
${{ env.UPGRADE }}
tag_name: ${{ env.TODAY }}
name: ${{ env.TODAY }}
body_path: updatelog.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update latest Release
Expand All @@ -77,5 +78,6 @@ jobs:
loongapplist-upgrade.csv
tag_name: latest
name: Latest
body_path: updatelog.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit fe7f75f

Please sign in to comment.