Skip to content

Commit 9b5d650

Browse files
authored
post_push.yml: Backport commit-mail to ruby_3_4 (ruby#14781)
1 parent a0937ff commit 9b5d650

File tree

2 files changed

+414
-0
lines changed

2 files changed

+414
-0
lines changed

.github/workflows/post_push.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,21 @@ jobs:
3030
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/ruby_') }}
3131

3232
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
33+
with:
34+
fetch-depth: 500
35+
36+
- name: Notify commit to ruby-cvs
37+
run: |
38+
SENDMAIL="ssh -i ${HOME}/.ssh/id_ed25519 [email protected] /usr/sbin/sendmail" \
39+
ruby tool/commit-mail.rb . [email protected] \
40+
"$GITHUB_OLD_SHA" "$GITHUB_NEW_SHA" "$GITHUB_REF" \
41+
--viewer-uri "https://github.com/ruby/ruby/commit/" \
42+
--error-to [email protected]
43+
env:
44+
GITHUB_OLD_SHA: ${{ github.event.before }}
45+
GITHUB_NEW_SHA: ${{ github.event.after }}
46+
GITHUB_REF: ${{ github.ref }}
47+
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/ruby_') }}
3348

3449
- uses: ./.github/actions/slack
3550
with:

0 commit comments

Comments
 (0)