diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-11-13 13:22:46 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <znz@users.noreply.github.com> | 2019-11-13 14:25:30 +0900 |
commit | c4064aef7f48c51add6c24467da64528d5a2a2a5 (patch) | |
tree | 134aa00f4a741a5a0112ccdcb38ba307c96fe78b /.github/workflows/macos.yml | |
parent | 245977b2861f5fa6a7341333ca9b1897e959489b (diff) | |
download | ruby-c4064aef7f48c51add6c24467da64528d5a2a2a5.tar.gz |
Add commit number of today to notification of GitHub Actions
Diffstat (limited to '.github/workflows/macos.yml')
-rw-r--r-- | .github/workflows/macos.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 319e40ba4e..d7437a2f2d 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -34,6 +34,7 @@ jobs: GITHUB_BRANCH: ${{ github.event.pull_request.head.ref }} GITHUB_REPO: ${{ github.event.pull_request.head.repo.full_name }} if: github.event_name == 'pull_request' + - run: ./src/tool/actions-commit-info.sh - name: Install libraries run: | export WAITS='5 60' @@ -67,7 +68,7 @@ jobs: payload: | { "attachments": [{ - "text": "${{ job.status}}: <https://github.com/${{ github.repository }}/commit/${{ github.sha }}/checks|${{ github.workflow }} / ${{ matrix.test_task }}> " + + "text": "${{ job.status }}: ${{ env.COMMIT_DATE }}-${{ env.COMMIT_NUMBER_OF_DAY }} <https://github.com/${{ github.repository }}/commit/${{ github.sha }}/checks|${{ github.workflow }} / ${{ matrix.test_task }}> " + "(<https://github.com/${{ github.repository }}/commit/${{ github.sha }}|" + "${{ github.sha }}".substring(0, 10) + ">) " + "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }}", "color": "danger" |