This commit is contained in:
Lan
2021-06-15 11:12:54 -04:00
parent bcb03caa48
commit 95b724d1af
6 changed files with 45 additions and 0 deletions

0
.github/workflows/sync_clone_scripts_from_DoveBoy_github.yml vendored Normal file → Executable file
View File

0
.github/workflows/sync_clone_scripts_from_lxk_docker.yml vendored Normal file → Executable file
View File

0
.github/workflows/sync_clone_scripts_from_lxk_git.yml vendored Normal file → Executable file
View File

View File

@ -0,0 +1,45 @@
name: Sync_Js_Tool_From_Gitee
on:
push:
branches:
- A1
workflow_dispatch:
schedule:
- cron: '*/10 * * * *'
jobs:
sync:
runs-on: ubuntu-18.04
timeout-minutes: 5
steps:
- name: Init Build Dependencies
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo -E rm -rf /etc/apt/sources.list.d
sudo -E apt-get update -y
sudo -E apt-get install -y build-essential git git-core curl wget
sudo -E apt-get clean -y
git config --global user.name 'lan-tianxiang' && git config --global user.email 'highdimen@github.com'
- name: Prepare Key
run: |
mkdir -p ~/.ssh
echo -e "${{ secrets.RSA_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan gitee.com > ~/.ssh/known_hosts
- name: Clone master From clone_scripts
run: |
git clone -b master git@gitee.com:highdimen/clone_scripts.git master
- name: Push master
uses: ad-m/github-push-action@master
with:
directory: master
github_token: ${{ secrets.HUB_TOKEN }}
branch: master
force : true
- name: Delete Workflow Runs
uses: Mattraks/delete-workflow-runs@main
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 1
keep_minimum_runs: 0

0
.github/workflows/sync_clone_scripts_master_to_git.yml vendored Normal file → Executable file
View File

0
README.md Normal file → Executable file
View File