mirror of
https://github.com/lan-tianxiang/clone_scripts.git
synced 2026-05-07 06:04:55 +08:00
Update sync_to_git_single.yml
This commit is contained in:
@@ -27,6 +27,7 @@ jobs:
|
|||||||
- name: Clone Master
|
- name: Clone Master
|
||||||
run: |
|
run: |
|
||||||
git clone -b master git@github.com:lan-tianxiang/clone_scripts.git master
|
git clone -b master git@github.com:lan-tianxiang/clone_scripts.git master
|
||||||
|
git clone --bare git@10.0.30.63:git-test.git
|
||||||
- name: Prepare Key
|
- name: Prepare Key
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
@@ -38,8 +39,9 @@ jobs:
|
|||||||
cd master
|
cd master
|
||||||
perl -i -pe "s|url = git@github.com:lan-tianxiang/clone_scripts.git|url = git@gitee.com:highdimen/clone_scripts.git|g" .git/config
|
perl -i -pe "s|url = git@github.com:lan-tianxiang/clone_scripts.git|url = git@gitee.com:highdimen/clone_scripts.git|g" .git/config
|
||||||
cat .git/config
|
cat .git/config
|
||||||
|
echo $(date) > time
|
||||||
git add .
|
git add .
|
||||||
git commit -m "a"
|
git commit -m "update"
|
||||||
git push -f
|
git push -f
|
||||||
- name: Delete Workflow Runs
|
- name: Delete Workflow Runs
|
||||||
uses: Mattraks/delete-workflow-runs@main
|
uses: Mattraks/delete-workflow-runs@main
|
||||||
|
|||||||
Reference in New Issue
Block a user