Skip to content

Commit

Permalink
Hotfix: rollbacked & added some manual temporarily. (v1.0.3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Allgot committed Dec 8, 2022
1 parent 271509e commit 0684528
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
FROM prosyslab/dude:test
COPY entrypoint.sh /entrypoint.sh
COPY dune /dune
COPY dune-project /dune-project
COPY dup_scan.ml /dup_scan.ml
ENTRYPOINT ["/entrypoint.sh"]
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ This action is triggered when a new issue has been created.
Then it compares the new issue's contents with existing issues' contents, and detect possible duplications.
If any possible duplication is detected, it will inform the issuer through comment.

**Currently this action is paritial: you should copy `dune`, `dune-project` and `dup_scan.ml` from [the underlying repository](https://github.com/prosyslab/dude) into the root directory of your repository. Sorry for the inconvenience, and we will fix this issue ASAP.**

## Inputs

## `issue_num`
Expand Down Expand Up @@ -52,7 +54,7 @@ env:
...
uses: prosyslab/dude@v1.0.2
uses: prosyslab/dude@v1.0.3
with:
issue_num: ${{ github.event.issue.number }}
issue_contents: ${{ github.event.issue.body }}
Expand Down
14 changes: 3 additions & 11 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
#!/bin/bash -l

# opam init --yes
# eval $(opam env)
# opam install dune --yes
# opam install cohttp-lwt-unix --yes --confirm-level=unsafe-yes
# opam install lwt_ssl --yes --confirm-level=unsafe-yes
# opam install yojson --yes --confirm-level=unsafe-yes

# eval $(opam env) # 제대로 못 잡아주는중.....

# Initializing
env CAML_LD_LIBRARY_PATH=/root/.opam/default/lib/stublibs:/root/.opam/default/lib/ocaml/stublibs:/root/.opam/default/lib/ocaml > /dev/null
env OCAML_TOPLEVEL_PATH=/root/.opam/default/lib/toplevel > /dev/null
env PKG_CONFIG_PATH=/root/.opam/default/lib/pkgconfig > /dev/null
Expand All @@ -17,10 +9,10 @@ env PWD=/ > /dev/null
env MANPATH=:/root/.opam/default/man > /dev/null
env OPAM_SWITCH_PREFIX=/root/.opam/default > /dev/null
env HOME=/root > /dev/null
env LESSCLOSE=/usr/bin/lesspipe %s %s > /dev/null
# env LESSCLOSE=/usr/bin/lesspipe %s %s > /dev/null
env TERM=xterm > /dev/null
env LESSOPEN=| /usr/bin/lesspipe %s > /dev/null
env OLDPWD=/roote > /dev/null
PATH=/root/.opam/default/bin:$PATH > /dev/null

dune exec dup_scan.exe $1 "contents:$2" $3 $4 "$5" "$6" # $1: issue_num, $2: issue_contents, $3: repository_path_name, $4: rapid_key, $5: repo_key, $6: threshold
dune exec ./dup_scan.exe $1 "contents:$2" $3 $4 "$5" "$6" # $1: issue_num, $2: issue_contents, $3: repository_path_name, $4: rapid_key, $5: repo_key, $6: threshold

0 comments on commit 0684528

Please sign in to comment.