Open lukaas33 opened 1 month ago
Hi! Can you try:
directories: "./"
instead of directories: "."
ls .
before the action is run to ensure that there are actually files in the directoryAnd let me know how it went?
I have ran the following:
name: Duplicate code detection
on: pull_request
jobs:
duplicate-code-check:
name: Check for duplicate code
runs-on: ubuntu-20.04
steps:
- name: List files in current directory
run: pwd && ls .
- name: Check for duplicate code
uses: platisd/duplicate-code-detection-tool@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
directories: "./"
And got this result (repo and username redacted):
0s
Run pwd && ls .
pwd && ls .
shell: /usr/bin/bash -e {0}
/home/runner/work/[user name]/[repo name]
Hmmm OK, my bad, every job starts with a clean slate so those commands aren't actually telling us anything meaningful.
Since there's no public logs, you will need to look into them yourself, there isn't too much I can do to help. The Action's entrypoint.sh clones that repository, but I assume for some reason this does not work.
The logs will look something like this but for your own repository:
Cloning into 'platisd/duplicate-code-detection-tool'...
From https://github.com/platisd/duplicate-code-detection-tool
* [new ref] refs/pull/33/head -> pull_request_branch
Switched to branch 'pull_request_branch'
{
"duplicate_code_detection.py": {
"run_action.py": 16.05
},
"run_action.py": {
"duplicate_code_detection.py": 16.05
}
}
I want to use this action in my node js project. My github action is setup as follows:
I am getting the following error: