mirror of
https://github.com/lan-tianxiang/clone_scripts.git
synced 2025-07-13 15:42:35 +08:00
Delete sync_to_git_single.yml
This commit is contained in:
43
.github/workflows/sync_to_git_single.yml
vendored
43
.github/workflows/sync_to_git_single.yml
vendored
@ -1,43 +0,0 @@
|
||||
name: sync_to_git_single
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '*/15 * * * *'
|
||||
jobs:
|
||||
sync:
|
||||
runs-on: ubuntu-18.04
|
||||
if: github.repository == 'lan-tianxiang/clone_scripts'
|
||||
timeout-minutes: 2
|
||||
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 'GitHub Actions' && git config --global user.email 'noreply@github.com'
|
||||
- name: Prepare Key
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo -e "${{ secrets.GITEE_RSA_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan gitee.com > ~/.ssh/known_hosts
|
||||
- name: Clone Master
|
||||
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 : ture
|
||||
- name: Delete Workflow Runs
|
||||
uses: Mattraks/delete-workflow-runs@main
|
||||
with:
|
||||
token: ${{ github.token }}
|
||||
repository: ${{ github.repository }}
|
||||
retain_days: 1
|
||||
keep_minimum_runs: 0
|
Reference in New Issue
Block a user