diff --git a/.github/workflows/sync_coding_net.yml b/.github/workflows/sync_coding_net.yml index f013cdc..530237d 100644 --- a/.github/workflows/sync_coding_net.yml +++ b/.github/workflows/sync_coding_net.yml @@ -19,11 +19,14 @@ jobs: cd ok-wuthering-waves.git - name: Set up Git credentials + env: + CODING_USERNAME: ${{ secrets.CODING_USERNAME }} + CODING_PASSWORD: ${{ secrets.CODING_PASSWORD }} run: | - git config --global user.name "${{ secrets.CODING_USERNAME }}" - git config --global user.password "${{ secrets.CODING_PASSWORD }}" + git config --global credential.helper store + echo "https://${CODING_USERNAME}:${CODING_PASSWORD}@e.coding.net" > ~/.git-credentials - name: Push to Coding.net run: | git remote add coding https://e.coding.net/g-frfh1513/ok-wuthering-waves/ok-wuthering-waves.git - git push --mirror coding --force \ No newline at end of file + git push --mirror coding --force