From c4064aef7f48c51add6c24467da64528d5a2a2a5 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Wed, 13 Nov 2019 13:22:46 +0900 Subject: Add commit number of today to notification of GitHub Actions --- .github/workflows/macos.yml | 3 ++- .github/workflows/ubuntu.yml | 3 ++- .github/workflows/windows.yml | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) (limited to '.github') 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}}: " + + "text": "${{ job.status }}: ${{ env.COMMIT_DATE }}-${{ env.COMMIT_NUMBER_OF_DAY }} " + "() " + "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }}", "color": "danger" diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index f02be6fba8..1a59bc333a 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -67,6 +67,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: Fixed world writable dirs run: | chmod go-w $HOME @@ -96,7 +97,7 @@ jobs: payload: | { "attachments": [{ - "text": "${{ job.status}}: " + + "text": "${{ job.status }}: ${{ env.COMMIT_DATE }}-${{ env.COMMIT_NUMBER_OF_DAY }} " + "() " + "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }}", "color": "danger" diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 0b4c41d80f..efa371d4a0 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -54,6 +54,8 @@ jobs: git clone --depth=50 --branch=${{ github.event.pull_request.head.ref }} https://github.com/${{ github.event.pull_request.head.repo.full_name }} src git -C src reset --hard ${{ github.event.pull_request.head.sha }} if: github.event_name == 'pull_request' + - run: ./src/tool/actions-commit-info.sh + shell: bash - name: Configure run: | md build @@ -80,7 +82,7 @@ jobs: payload: | { "attachments": [{ - "text": "${{ job.status}}: " + + "text": "${{ job.status }}: ${{ env.COMMIT_DATE }}-${{ env.COMMIT_NUMBER_OF_DAY }} " + "() " + "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }}", "color": "danger" -- cgit v1.2.3