File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Post-push
2+ on :
3+ push :
4+ branches :
5+ - master
6+ - ' ruby_*_*'
7+ jobs :
8+ hooks :
9+ name : Post-push hooks
10+ runs-on : ubuntu-latest
11+ if : ${{ github.repository == 'ruby/ruby' }}
12+ steps :
13+ - name : Sync git.ruby-lang.org
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+ ssh -i ~/.ssh/id_ed25519 [email protected] "sudo -u git /home/git/git.ruby-lang.org/bin/update-ruby.sh $GITHUB_REF" 20+ env :
21+ GITHUB_REF : ${{ github.ref }}
22+ RUBY_GIT_SYNC_PRIVATE_KEY : ${{ secrets.RUBY_GIT_SYNC_PRIVATE_KEY }}
23+ if : ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/ruby_') }}
24+
25+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
26+
27+ - uses : ./.github/actions/slack
28+ with :
29+ SLACK_WEBHOOK_URL : ${{ secrets.SIMPLER_ALERTS_URL }} # ruby-lang slack: ruby/simpler-alerts-bot
30+ if : ${{ failure() }}
You can’t perform that action at this time.
0 commit comments