|
15 | 15 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
16 | 16 | with: |
17 | 17 | fetch-depth: 0 |
18 | | - - uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1 |
| 18 | + - if: ${{ env.SSH_PRIVATE_KEY != '' }} |
| 19 | + uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1 |
19 | 20 | with: |
20 | 21 | ssh-private-key: ${{ secrets.GITLAB_SSH_KEY }} |
21 | 22 | - name: Mirror to GitLab |
|
31 | 32 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
32 | 33 | with: |
33 | 34 | fetch-depth: 0 |
34 | | - - uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1 |
| 35 | + - if: ${{ env.SSH_PRIVATE_KEY != '' }} |
| 36 | + uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1 |
35 | 37 | with: |
36 | 38 | ssh-private-key: ${{ secrets.BITBUCKET_SSH_KEY }} |
37 | 39 | - name: Mirror to Bitbucket |
|
47 | 49 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
48 | 50 | with: |
49 | 51 | fetch-depth: 0 |
50 | | - - uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1 |
| 52 | + - if: ${{ env.SSH_PRIVATE_KEY != '' }} |
| 53 | + uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1 |
51 | 54 | with: |
52 | 55 | ssh-private-key: ${{ secrets.CODEBERG_SSH_KEY }} |
53 | 56 | - name: Mirror to Codeberg |
|
63 | 66 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
64 | 67 | with: |
65 | 68 | fetch-depth: 0 |
66 | | - - uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1 |
| 69 | + - if: ${{ env.SSH_PRIVATE_KEY != '' }} |
| 70 | + uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1 |
67 | 71 | with: |
68 | 72 | ssh-private-key: ${{ secrets.SOURCEHUT_SSH_KEY }} |
69 | 73 | - name: Mirror to SourceHut |
|
79 | 83 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
80 | 84 | with: |
81 | 85 | fetch-depth: 0 |
82 | | - - uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1 |
| 86 | + - if: ${{ env.SSH_PRIVATE_KEY != '' }} |
| 87 | + uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1 |
83 | 88 | with: |
84 | 89 | ssh-private-key: ${{ secrets.DISROOT_SSH_KEY }} |
85 | 90 | - name: Mirror to Disroot |
|
95 | 100 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
96 | 101 | with: |
97 | 102 | fetch-depth: 0 |
98 | | - - uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1 |
| 103 | + - if: ${{ env.SSH_PRIVATE_KEY != '' }} |
| 104 | + uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1 |
99 | 105 | with: |
100 | 106 | ssh-private-key: ${{ secrets.GITEA_SSH_KEY }} |
101 | 107 | - name: Mirror to Gitea |
|
0 commit comments