From bb4fedd9ea369de1c0c76ccd1c7ee9d1dca95a23 Mon Sep 17 00:00:00 2001 From: Naka Masato Date: Fri, 31 Mar 2023 15:46:07 +0900 Subject: [PATCH 1/3] Create github-comment.yml --- .github/workflows/github-comment.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/github-comment.yml diff --git a/.github/workflows/github-comment.yml b/.github/workflows/github-comment.yml new file mode 100644 index 00000000..6aa82d1a --- /dev/null +++ b/.github/workflows/github-comment.yml @@ -0,0 +1,25 @@ +name: github-comment + +on: pull_request + +jobs: + comment: + runs-on: ubuntu-latest + steps: + - name: Set up github-comment + id: github-comment + env: + GHCMT_VERSION: 4.1.0 + run: | + cmdDir="${{ runner.tool_cache }}/github-comment/${GHCMT_VERSION}" + if [[ ! -x "${cmdDir}/github-comment" ]]; then + mkdir -p "${cmdDir}" + cd "${{ runner.temp }}" + curl -fLO "https://github.com/suzuki-shunsuke/github-comment/releases/download/v${GHCMT_VERSION}/github-comment_${GHCMT_VERSION}_linux_amd64.tar.gz" + tar -C "${cmdDir}" -xzf "github-comment_${GHCMT_VERSION}_linux_amd64.tar.gz" + fi + echo "${cmdDir}" >> "$GITHUB_PATH" + - name: Check github-comment + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: github-comment exec "hello" From a2a0003f9c8c6557e33e0838f36cae7b48ab68ab Mon Sep 17 00:00:00 2001 From: Naka Masato Date: Fri, 31 Mar 2023 15:48:08 +0900 Subject: [PATCH 2/3] Update github-comment.yml --- .github/workflows/github-comment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-comment.yml b/.github/workflows/github-comment.yml index 6aa82d1a..8348d1d0 100644 --- a/.github/workflows/github-comment.yml +++ b/.github/workflows/github-comment.yml @@ -22,4 +22,4 @@ jobs: - name: Check github-comment env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: github-comment exec "hello" + run: github-comment post -- echo "hello" From f145020ce56c6b7a55f8bbff0cad955a0e50d804 Mon Sep 17 00:00:00 2001 From: Naka Masato Date: Fri, 31 Mar 2023 15:57:39 +0900 Subject: [PATCH 3/3] Update github-comment.yml --- .github/workflows/github-comment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-comment.yml b/.github/workflows/github-comment.yml index 8348d1d0..d578d316 100644 --- a/.github/workflows/github-comment.yml +++ b/.github/workflows/github-comment.yml @@ -22,4 +22,4 @@ jobs: - name: Check github-comment env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: github-comment post -- echo "hello" + run: echo "hello" | github-comment post -stdin-template