From 7fa821a80d60992f019c98ac813e2fc6e9775031 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Wed, 11 Dec 2019 14:01:23 +0900 Subject: Try to use `set-output` because commit info are not necessary in env. --- .github/workflows/cygwin.yml | 7 +++---- .github/workflows/macos.yml | 3 ++- .github/workflows/mjit.yml | 3 ++- .github/workflows/ubuntu.yml | 3 ++- .github/workflows/windows.yml | 3 ++- 5 files changed, 11 insertions(+), 8 deletions(-) (limited to '.github') diff --git a/.github/workflows/cygwin.yml b/.github/workflows/cygwin.yml index 60c931e72d..0821d63049 100644 --- a/.github/workflows/cygwin.yml +++ b/.github/workflows/cygwin.yml @@ -54,10 +54,9 @@ jobs: git -C src reset --hard ${{ github.event.pull_request.head.sha }} if: github.event_name == 'pull_request' shell: cmd - - name: Actions-commit-info.sh - run: | - bash ./src/tool/actions-commit-info.sh - shell: cmd + - run: ./src/tool/actions-commit-info.sh + shell: bash + id: commit_info - name: Autoconf run: | cd src diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index ab73c1963e..724081d9dc 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -35,6 +35,7 @@ jobs: GITHUB_REPO: ${{ github.event.pull_request.head.repo.full_name }} if: github.event_name == 'pull_request' - run: ./src/tool/actions-commit-info.sh + id: commit_info - name: Install libraries run: | export WAITS='5 60' @@ -69,7 +70,7 @@ jobs: payload: | { "attachments": [{ - "text": "${{ job.status }}: ${{ github.workflow }} / ${{ matrix.test_task }} " + + "text": "${{ job.status }}: ${{ github.workflow }} / ${{ matrix.test_task }} " + "() " + "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }}", "color": "danger" diff --git a/.github/workflows/mjit.yml b/.github/workflows/mjit.yml index 73b242be19..067140e61d 100644 --- a/.github/workflows/mjit.yml +++ b/.github/workflows/mjit.yml @@ -36,6 +36,7 @@ jobs: GITHUB_REPO: ${{ github.event.pull_request.head.repo.full_name }} if: github.event_name == 'pull_request' - run: ./src/tool/actions-commit-info.sh + id: commit_info - name: Fixed world writable dirs run: | chmod go-w $HOME @@ -67,7 +68,7 @@ jobs: payload: | { "attachments": [{ - "text": "${{ job.status }}: ${{ github.workflow }} / ${{ matrix.jit_opts }} " + + "text": "${{ job.status }}: ${{ github.workflow }} / ${{ matrix.jit_opts }} " + "() " + "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 b8f08dcabd..91c9e2b2dd 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -68,6 +68,7 @@ jobs: GITHUB_REPO: ${{ github.event.pull_request.head.repo.full_name }} if: github.event_name == 'pull_request' - run: ./src/tool/actions-commit-info.sh + id: commit_info - name: Fixed world writable dirs run: | chmod go-w $HOME @@ -103,7 +104,7 @@ jobs: payload: | { "attachments": [{ - "text": "${{ job.status }}: ${{ matrix.os }} / ${{ matrix.test_task }} " + + "text": "${{ job.status }}: ${{ matrix.os }} / ${{ matrix.test_task }} " + "() " + "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 e1f5f8fb9a..09e588784c 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -50,6 +50,7 @@ jobs: if: github.event_name == 'pull_request' - run: ./src/tool/actions-commit-info.sh shell: bash + id: commit_info - name: Configure run: | md build @@ -78,7 +79,7 @@ jobs: payload: | { "attachments": [{ - "text": "${{ job.status }}: ${{ matrix.os }} / ${{ matrix.test_task }} " + + "text": "${{ job.status }}: ${{ matrix.os }} / ${{ matrix.test_task }} " + "() " + "of ${{ github.repository }}@" + "${{ github.ref }}".split('/').reverse()[0] + " by ${{ github.event.head_commit.committer.name }}", "color": "danger" -- cgit v1.2.3