From 203ed3d2def4ce3c51dbeeb4ff621ed11b7a0ecd Mon Sep 17 00:00:00 2001 From: K8sCat Date: Mon, 3 Jan 2022 08:07:11 +0800 Subject: [PATCH] remove git lfs support --- .github/workflows/example.yml | 1 - action.yml | 5 ----- mirror.sh | 3 --- 3 files changed, 9 deletions(-) diff --git a/.github/workflows/example.yml b/.github/workflows/example.yml index d0478b0..fff51a2 100644 --- a/.github/workflows/example.yml +++ b/.github/workflows/example.yml @@ -46,7 +46,6 @@ jobs: dest_host: github.com dest_username: ${{ secrets.DEST_USERNAME }} dest_private_key: ${{ secrets.DEST_PRIVATE_KEY }} - enable_git_lfs: "true" push_tags: "true" mirror_repos: ${{ steps.list_repos.outputs.repo_list }} skip_tags_repos: "repo3,repo4" diff --git a/action.yml b/action.yml index 8a3f49f..4377daf 100644 --- a/action.yml +++ b/action.yml @@ -54,10 +54,6 @@ inputs: mirror_repos: description: "Repos to mirror, separated by comma" required: true - enable_git_lfs: - description: "use git lfs, true or false" - required: false - default: "false" push_tags: description: "Push tags via --mirror, true or false" required: false @@ -86,7 +82,6 @@ runs: DEST_TOKEN: ${{ inputs.dest_token }} DEST_CREATE_REPO_SCRIPT: ${{ inputs.dest_create_repo_script }} MIRROR_REPOS: ${{ inputs.mirror_repos }} - ENABLE_GIT_LFS: ${{ inputs.enable_git_lfs }} PUSH_TAGS: ${{ inputs.push_tags }} SKIP_TAGS_REPOS: ${{ inputs.skip_tags_repos }} IGNORED_REPOS: ${{ inputs.ignored_repos }} diff --git a/mirror.sh b/mirror.sh index 129fdd7..b3297ee 100755 --- a/mirror.sh +++ b/mirror.sh @@ -97,7 +97,4 @@ for repo_name in ${MIRROR_REPOS}; do else git push --mirror -f "${dest_addr}" || continue fi - if [[ "${ENABLE_GIT_LFS}" = "true" ]]; then - git lfs push --all "${dest_addr}" || continue - fi done \ No newline at end of file