This commit is contained in:
kenzok8 2022-04-11 15:53:27 +08:00
parent bc056c7792
commit 35996db0cd
2 changed files with 4 additions and 5 deletions

View File

@ -39,9 +39,10 @@ jobs:
cd $GITHUB_WORKSPACE
chmod +x ${{matrix.target}}.sh
git clone -b main https://github.com/kenzok8/sync-openwrt-packages.git ${{matrix.target}}
cd ${{matrix.target}}
$GITHUB_WORKSPACE/${{matrix.target}}.sh
$GITHUB_WORKSPACE/Modify.sh
cd $GITHUB_WORKSPACE/${{matrix.target}}
rm -rf *.sh *.github *.diy *.gitignore
- name: Upload
env:
@ -49,7 +50,6 @@ jobs:
run: |
[ -e $GITHUB_WORKSPACE/README.md ] && cp $GITHUB_WORKSPACE/README.md $GITHUB_WORKSPACE/${{matrix.target}}
cd $GITHUB_WORKSPACE/${{matrix.target}}
rm -rf *.sh *.github *.diy *.gitignore
git add .
git commit -m "update $(date +%Y-%m-%d" "%H:%M:%S)"
git push --force "https://${{ secrets.ACCESS_TOKEN }}@github.com/kenzok8/openwrt-packages.git" HEAD:${{matrix.target}}

View File

@ -39,16 +39,15 @@ jobs:
cd $GITHUB_WORKSPACE
chmod +x small.sh
git clone -b main https://github.com/kenzok8/sync-openwrt-packages.git ${{matrix.target}}
cd ${{matrix.target}}
$GITHUB_WORKSPACE/small.sh
cd $GITHUB_WORKSPACE/${{matrix.target}}
rm -rf *.sh *.github *.diy *.gitignore
- name: Upload
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
run: |
[ -e $GITHUB_WORKSPACE/README.md ] && cp $GITHUB_WORKSPACE/README.md $GITHUB_WORKSPACE/${{matrix.target}}
cd $GITHUB_WORKSPACE/${{matrix.target}}
rm -rf *.sh *.github *.diy *.gitignore
git add .
git commit -m "update $(date +%Y-%m-%d" "%H:%M:%S)"
git push --force "https://${{ secrets.ACCESS_TOKEN }}@github.com/kenzok8/small.git" HEAD:${{matrix.target}}