From 6792646ff11aaba54455d3291f508d248c037f2b Mon Sep 17 00:00:00 2001 From: Natsuki Ikeguchi Date: Thu, 31 Aug 2023 13:50:23 +0900 Subject: [PATCH 1/2] fix: Use GitHub reporter on Action --- entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 2e91176..b561131 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,6 +2,7 @@ if [ "${INPUT_REPORT_ENABLED}" = "true" ]; then # shellcheck disable=SC2034 + export LOXCAN_ARGS="-r github" export LOXCAN_REPORTER_GITHUB="1" export LOXCAN_REPORTER_GITHUB_OWNER="${INPUT_OWNER}" export LOXCAN_REPORTER_GITHUB_REPO="${INPUT_REPO}" @@ -13,4 +14,4 @@ fi BRANCH_BASE="origin/${INPUT_BASE}" BRANCH_HEAD="${GITHUB_SHA}" -/app/bin/loxcan "${BRANCH_BASE}" "${BRANCH_HEAD}" +/app/bin/loxcan ${LOXCAN_ARGS} "${BRANCH_BASE}" "${BRANCH_HEAD}" From 68bd529f7c7162d37cb4e76686aaef71abb52857 Mon Sep 17 00:00:00 2001 From: Natsuki Ikeguchi Date: Thu, 31 Aug 2023 13:53:29 +0900 Subject: [PATCH 2/2] fix: Fix action.yml --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 923ec82..ebd1414 100644 --- a/action.yml +++ b/action.yml @@ -37,6 +37,7 @@ runs: pushd '${{ github.action_path }}' && composer i -n && popd if [ "${{ inputs.report_enabled }}" = "true" ]; then + export LOXCAN_ARGS="-r github" export LOXCAN_REPORTER_GITHUB="1" export LOXCAN_REPORTER_GITHUB_OWNER="${{ inputs.owner }}" export LOXCAN_REPORTER_GITHUB_REPO="${{ inputs.repo }}" @@ -48,4 +49,4 @@ runs: BRANCH_BASE="origin/${{ inputs.base }}" BRANCH_HEAD="${{ github.sha }}" - ${{ github.action_path }}/bin/loxcan "${BRANCH_BASE}" "${BRANCH_HEAD}" + ${{ github.action_path }}/bin/loxcan ${LOXCAN_ARGS} "${BRANCH_BASE}" "${BRANCH_HEAD}"