Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Resurrect sync from GitHub to git.ruby-lang.org
  • Loading branch information
k0kubun committed Oct 8, 2025
commit 7f26f3395d0d796a49a7403a5a095485809d400c
12 changes: 12 additions & 0 deletions .github/workflows/check_misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ jobs:
if: ${{ github.repository == 'ruby/ruby' && github.ref == 'refs/heads/master' && github.event_name == 'push' }}
continue-on-error: true # The next auto-style should always run

# Sync git.ruby-lang.org before pushing new commits to avoid duplicated syncs
- name: Sync git.ruby-lang.org
env:
RUBY_GIT_SYNC_PRIVATE_KEY: ${{ secrets.RUBY_GIT_SYNC_PRIVATE_KEY }}
run: |
mkdir -p ~/.ssh
echo "$RUBY_GIT_SYNC_PRIVATE_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -t ed25519 git.ruby-lang.org >> ~/.ssh/known_hosts
ssh -i ~/.ssh/id_ed25519 [email protected] 'sudo -u git /home/git/git.ruby-lang.org/bin/update-ruby.sh'
if: ${{ github.repository == 'ruby/ruby' && github.ref == 'refs/heads/master' && github.event_name == 'push' }}

- uses: ./.github/actions/setup/directories
with:
makeup: true
Expand Down
Loading