File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed
Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change 66jobs :
77 deploy :
88 runs-on : ubuntu-latest
9+ if : ${{ github.repository == 'ruby/git.ruby-lang.org' }}
910 steps :
10- - uses : actions/checkout@v5
11- - name : Set up SSH
12- env :
13- RUBY_GIT_SYNC_PRIVATE_KEY : ${{ secrets.RUBY_GIT_SYNC_PRIVATE_KEY }}
14- run : |
15- mkdir -p ~/.ssh
16- echo "$RUBY_GIT_SYNC_PRIVATE_KEY" > ~/.ssh/id_ed25519
17- chmod 600 ~/.ssh/id_ed25519
18- ssh-keyscan -t ed25519 git.ruby-lang.org >> ~/.ssh/known_hosts
19-
20- - name : Sync /home/git/git.ruby-lang.org
21- run :
ssh -i ~/.ssh/id_ed25519 [email protected] 'sudo -u git /home/git/git.ruby-lang.org/bin/update-git-ruby-lang-org.sh' 11+ - name : Sync git.ruby-lang.org
12+ run : |
13+ mkdir -p ~/.ssh
14+ echo "$RUBY_GIT_SYNC_PRIVATE_KEY" > ~/.ssh/id_ed25519
15+ chmod 600 ~/.ssh/id_ed25519
16+ ssh-keyscan -t ed25519 git.ruby-lang.org >> ~/.ssh/known_hosts
17+ ssh -i ~/.ssh/id_ed25519 [email protected] "sudo -u git /home/git/git.ruby-lang.org/bin/update-git-ruby-lang-org.sh" 18+ env :
19+ RUBY_GIT_SYNC_PRIVATE_KEY : ${{ secrets.RUBY_GIT_SYNC_PRIVATE_KEY }}
You can’t perform that action at this time.
0 commit comments