Skip to content

Fork & Edit

Fork & Edit #284

Workflow file for this run

name: Fork & Edit
on:
workflow_dispatch:
schedule:
- cron: "15 */6 * * *"
jobs:
Fork-FLITER-list:
runs-on: ubuntu-latest
env:
TZ: 'Asia/Shanghai'
steps:
- name: Checkout target repository
uses: actions/[email protected]
with:
repository: Abcd789JK/Tools
path: Tools-repo
- name: 复刻
run: |
curl https://raw.githubusercontent.com/Abcd789JK/Tools/refs/heads/main/Script/fork.sh | sh
###### Commit
- name: Add and Commit
run: |
cd Tools-repo
if [[ -n $(git status -s) ]]; then
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -m "Auto Update $(TZ='Asia/Shanghai' date +'%Y-%m-%d %H:%M:%S')"
git push origin HEAD
else
echo "No changes to commit."
fi
- name: Cleanup Workflow
uses: Mattraks/delete-workflow-runs@main
with:
retain_days: 0
keep_minimum_runs: 5