Skip to content

Commit

Permalink
Feature: add repo_path_prefix argument for non-standard repo path.
Browse files Browse the repository at this point in the history
  • Loading branch information
caic99 authored and platisd committed Apr 24, 2022
1 parent a4fd1ce commit 6f016d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ inputs:
description: 'The number of suggestions per comment (smaller numbers work better for heavy pull requests)'
required: false
default: '10'
repo_path_prefix:
description: 'The path to repo when code is analyzed with clang-tidy; may set to "/__w" for users who run clang-tidy in a docker container'
required: false
default: '/home/runner/work'

runs:
using: 'docker'
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ else
fi

repository_name="$(basename "$GITHUB_REPOSITORY")"
recreated_runner_dir="/home/runner/work/$repository_name"
recreated_runner_dir="$INPUT_REPO_PATH_PREFIX/$repository_name"
mkdir -p "$recreated_runner_dir"
recreated_repo_dir="$recreated_runner_dir/$repository_name"

Expand Down

0 comments on commit 6f016d0

Please sign in to comment.