diff options
| author | Takashi Kokubun <takashi.kokubun@shopify.com> | 2025-10-08 14:03:11 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-08 14:03:11 -0700 |
| commit | 7ec03e12b4fa1f8a16e35131688bb7fd17e7d097 (patch) | |
| tree | 1eff478f4106b2885e8cba4d97a9d373019f7c2c /.github | |
| parent | 501dd27eb249fa3b1546893ecaec033f1ce69fd4 (diff) | |
post_push.yml: Migrate commit-email.rb to post_push (#14779)
from post-receive.sh as of https://github.com/ruby/git.ruby-lang.org/commit/8d24ac65b5aeb44f7a3212410d6911be621223d4.
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/post_push.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.github/workflows/post_push.yml b/.github/workflows/post_push.yml index 317aad2e42..cbbcb107e3 100644 --- a/.github/workflows/post_push.yml +++ b/.github/workflows/post_push.yml @@ -43,6 +43,19 @@ jobs: SLACK_WEBHOOK_URL_RUBY_JP: ${{ secrets.SLACK_WEBHOOK_URL_RUBY_JP }} if: ${{ github.ref == 'refs/heads/master' }} + - name: Notify commit to ruby-cvs + run: | + SENDMAIL="ssh -i ${HOME}/.ssh/id_ed25519 git-sync@git.ruby-lang.org sendmail" \ + ruby tool/commit-mail.rb . ruby-cvs@g.ruby-lang.org \ + "$GITHUB_OLD_SHA" "$GITHUB_NEW_SHA" "$GITHUB_REF" \ + --viewer-uri "https://github.com/ruby/ruby/commit/" \ + --error-to cvs-admin@ruby-lang.org + env: + GITHUB_OLD_SHA: ${{ github.event.before }} + GITHUB_NEW_SHA: ${{ github.event.after }} + GITHUB_REF: ${{ github.ref }} + if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/ruby_') }} + - name: Auto-correct code styles run: | set -x |
