diff --git a/.github/workflows/sync_clone_scripts_from_DoveBoy_github.yml b/.github/workflows/sync_clone_scripts_from_DoveBoy_github.yml old mode 100644 new mode 100755 diff --git a/.github/workflows/sync_clone_scripts_from_lxk_docker.yml b/.github/workflows/sync_clone_scripts_from_lxk_docker.yml old mode 100644 new mode 100755 diff --git a/.github/workflows/sync_clone_scripts_from_lxk_git.yml b/.github/workflows/sync_clone_scripts_from_lxk_git.yml old mode 100644 new mode 100755 diff --git a/.github/workflows/sync_clone_scripts_master_from_git.yml b/.github/workflows/sync_clone_scripts_master_from_git.yml new file mode 100755 index 0000000..c5797d6 --- /dev/null +++ b/.github/workflows/sync_clone_scripts_master_from_git.yml @@ -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 diff --git a/.github/workflows/sync_clone_scripts_master_to_git.yml b/.github/workflows/sync_clone_scripts_master_to_git.yml old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755