mirror of
https://github.com/lan-tianxiang/clone_scripts.git
synced 2025-07-13 23:52:36 +08:00
creat
This commit is contained in:
0
.github/workflows/sync_clone_scripts_from_DoveBoy_github.yml
vendored
Normal file → Executable file
0
.github/workflows/sync_clone_scripts_from_DoveBoy_github.yml
vendored
Normal file → Executable file
0
.github/workflows/sync_clone_scripts_from_lxk_docker.yml
vendored
Normal file → Executable file
0
.github/workflows/sync_clone_scripts_from_lxk_docker.yml
vendored
Normal file → Executable file
0
.github/workflows/sync_clone_scripts_from_lxk_git.yml
vendored
Normal file → Executable file
0
.github/workflows/sync_clone_scripts_from_lxk_git.yml
vendored
Normal file → Executable file
45
.github/workflows/sync_clone_scripts_master_from_git.yml
vendored
Executable file
45
.github/workflows/sync_clone_scripts_master_from_git.yml
vendored
Executable 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
0
.github/workflows/sync_clone_scripts_master_to_git.yml
vendored
Normal file → Executable file
Reference in New Issue
Block a user