Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create github-comment.yml #420

Merged
merged 3 commits into from
Apr 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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