mirror of
https://github.com/lan-tianxiang/clone_scripts.git
synced 2025-07-14 08:02:36 +08:00
Update and rename sync_from_scf_github.yml to sync_clone_scripts_from_scf_github.yml
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
name: sync_from_scf_github
|
name: sync_clone_scripts_from_scf_github
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
@ -17,23 +17,9 @@ jobs:
|
|||||||
sudo -E apt-get update -y
|
sudo -E apt-get update -y
|
||||||
sudo -E apt-get install -y build-essential git git-core curl wget jq
|
sudo -E apt-get install -y build-essential git git-core curl wget jq
|
||||||
sudo -E apt-get clean -y
|
sudo -E apt-get clean -y
|
||||||
git config --global user.name 'GitHub Actions' && git config --global user.email 'noreply@github.com'
|
git config --global user.name 'lxk0301' && git config --global user.email 'lxk0301@gitee.com'
|
||||||
# - name: Get Code 01
|
|
||||||
# run: |
|
- name: Get Code
|
||||||
# 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
|
|
||||||
run: |
|
run: |
|
||||||
git clone -b master https://github.com/DoveBoy/scf.git scripts
|
git clone -b master https://github.com/DoveBoy/scf.git scripts
|
||||||
- name: Push Code
|
- name: Push Code
|
Reference in New Issue
Block a user