diff --git a/.github/workflows/syncToGitee.yml b/.github/workflows/syncToGitee.yml index 632309c..4f208ef 100644 --- a/.github/workflows/syncToGitee.yml +++ b/.github/workflows/syncToGitee.yml @@ -14,7 +14,7 @@ jobs: - name: Update commit hash to gitVersion if: github.actor != 'github-actions[bot]' run: | - git show -s --format=%H > gitVersion + 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]' @@ -24,20 +24,20 @@ jobs: 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: dist - cleanup: true - exclude: '[".git/**", ".github/**", "source/**", "*.md", "gitVersion"]' - pasive: false +# - 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: dist +# 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]'