Skip to content

Commit

Permalink
Create github-comment.yml (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
nakamasato authored Apr 13, 2023
1 parent 33d0d1b commit d3e92b2
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/github-comment.yml
Original file line number Diff line number Diff line change
@@ -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: echo "hello" | github-comment post -stdin-template

0 comments on commit d3e92b2

Please sign in to comment.