From 54780b18759aa8440514057031acb51d810d7041 Mon Sep 17 00:00:00 2001 From: lan-tianxiang <42911023+lan-tianxiang@users.noreply.github.com> Date: Sun, 28 Mar 2021 19:20:35 +0800 Subject: [PATCH] Update and rename sync_from_scf_github.yml to sync_clone_scripts_from_scf_github.yml --- ...=> sync_clone_scripts_from_scf_github.yml} | 22 ++++--------------- 1 file changed, 4 insertions(+), 18 deletions(-) rename .github/workflows/{sync_from_scf_github.yml => sync_clone_scripts_from_scf_github.yml} (55%) diff --git a/.github/workflows/sync_from_scf_github.yml b/.github/workflows/sync_clone_scripts_from_scf_github.yml similarity index 55% rename from .github/workflows/sync_from_scf_github.yml rename to .github/workflows/sync_clone_scripts_from_scf_github.yml index 8950316..cd45dfd 100644 --- a/.github/workflows/sync_from_scf_github.yml +++ b/.github/workflows/sync_clone_scripts_from_scf_github.yml @@ -1,4 +1,4 @@ -name: sync_from_scf_github +name: sync_clone_scripts_from_scf_github on: workflow_dispatch: schedule: @@ -17,23 +17,9 @@ jobs: sudo -E apt-get update -y sudo -E apt-get install -y build-essential git git-core curl wget jq sudo -E apt-get clean -y - git config --global user.name 'GitHub Actions' && git config --global user.email 'noreply@github.com' - # - name: Get Code 01 - # run: | - # mkdir -p ~/.ssh - # echo -e "${{ secrets.LXKEY }}" > ~/.ssh/id_rsa - # chmod 600 ~/.ssh/id_rsa - # ssh-keyscan gitee.com > ~/.ssh/known_hosts - # git clone -b master git@gitee.com:lxk0301/jd_scripts.git scripts - # - name: Get Code 02 - # run: | - # docker pull lxk0301/jd_scripts:latest - # docker save lxk0301/jd_scripts:latest > jd.tar - # tar -xvf jd.tar - # layer_file=$(cat manifest.json | jq ".[0]" | jq ".Layers" | jq ".[1]" | sed 's,",,g') - # cp $layer_file ./ - # tar -xvf layer.tar - - name: Get Code 03 + git config --global user.name 'lxk0301' && git config --global user.email 'lxk0301@gitee.com' + + - name: Get Code run: | git clone -b master https://github.com/DoveBoy/scf.git scripts - name: Push Code