Skip to content

Commit

Permalink
Merge pull request #130 from siketyan/fix/github-reporter-action
Browse files Browse the repository at this point in the history
fix: Use GitHub reporter on Action
  • Loading branch information
siketyan authored Aug 31, 2023
2 parents 8f30e18 + 68bd529 commit 4711650
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand All @@ -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}"
3 changes: 2 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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}"

0 comments on commit 4711650

Please sign in to comment.