From 402e34ea2beee4509a0fea094174da4972664db3 Mon Sep 17 00:00:00 2001 From: StageGuard <1355416608@qq.com> Date: Tue, 6 Jul 2021 14:33:09 +0800 Subject: [PATCH] update workflow --- .github/workflows/syncToGitee.yml | 48 ------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 .github/workflows/syncToGitee.yml diff --git a/.github/workflows/syncToGitee.yml b/.github/workflows/syncToGitee.yml deleted file mode 100644 index fa91c50..0000000 --- a/.github/workflows/syncToGitee.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Auto update commit and sync to gitee - -on: [ push, delete, create ] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - if: github.actor != 'github-actions[bot]' - with: - persist-credentials: true - - name: Update commit hash to gitVersion - if: github.actor != 'github-actions[bot]' - run: | - git show -s --format=%H | awk 'NR == 1 {p = $0} NR > 1 {print p; p = $0} END{printf p}' > gitVersion - - name: Push commit - uses: EndBug/add-and-commit@v7.1.2 - if: github.actor != 'github-actions[bot]' - with: - add: gitVersion - author_name: github-actions[bot] - author_email: 41898282+github-actions[bot]@users.noreply.github.com - message: Update git tree hash - push: true -# - name: Sync to mirror file server -# uses: sand4rt/ftp-deployer@v1.3 -# if: github.actor != 'github-actions[bot]' -# with: -# sftp: false -# host: ${{ secrets.FTP_MIRROR_DESTINATION }} -# port: ${{ secrets.FTP_MIRROR_PORT }} -# username: ${{ secrets.FTP_MIRROR_USERNAME }} -# password: ${{ secrets.FTP_MIRROR_SECRET }} -# remote_folder: ${{ secrets.FTP_MIRROR_ROOT_PATH }} -# local_folder: . -# cleanup: true -# exclude: '[".git/**", ".github/**", "source/**", "*.md", "gitVersion"]' -# pasive: false - - name: Sync to Gitee repo - uses: wearerequired/git-mirror-action@master - if: github.actor != 'github-actions[bot]' - env: - SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }} - with: - source-repo: git@github.com:StageGuard/SkyAutoPlayerScript.git - destination-repo: git@gitee.com:stageguard/SkyAutoPlayerScript.git