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}" 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}"