From 9fe97e02ad55d9d0be72f7e981300cfed6ba6ec5 Mon Sep 17 00:00:00 2001 From: Naka Masato Date: Fri, 26 Jan 2024 17:47:29 +0900 Subject: [PATCH] feat: github-comment (#1036) * github-comment * Update github-comment.yml --- .github/workflows/github-comment.yml | 21 +++++++++------------ aqua.yaml | 13 +++++++++++++ 2 files changed, 22 insertions(+), 12 deletions(-) create mode 100644 aqua.yaml diff --git a/.github/workflows/github-comment.yml b/.github/workflows/github-comment.yml index d578d316..2a104fae 100644 --- a/.github/workflows/github-comment.yml +++ b/.github/workflows/github-comment.yml @@ -1,3 +1,4 @@ +# https://zenn.dev/shunsuke_suzuki/articles/improve-cicd-with-github-comment name: github-comment on: pull_request @@ -6,19 +7,15 @@ jobs: comment: runs-on: ubuntu-latest steps: - - name: Set up github-comment - id: github-comment + - uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3 + - uses: aquaproj/aqua-installer@928a2ee4243a9ee8312d80dc8cbaca88fb602a91 # v2.2.0 + with: + aqua_version: v2.17.0 + + - run: github-comment hide 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" + GITHUB_TOKEN: ${{ github.token }} + - name: Check github-comment env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/aqua.yaml b/aqua.yaml new file mode 100644 index 00000000..09f1ae5e --- /dev/null +++ b/aqua.yaml @@ -0,0 +1,13 @@ +--- +# aqua - Declarative CLI Version Manager +# https://aquaproj.github.io/ +# checksum: +# enabled: true +# require_checksum: true +# supported_envs: +# - all +registries: +- type: standard + ref: v4.124.0 # renovate: depName=aquaproj/aqua-registry +packages: +- name: suzuki-shunsuke/github-comment@v6.0.2