Skip to content

Commit

Permalink
[CI] checkout fork in specififc directory
Browse files Browse the repository at this point in the history
  • Loading branch information
bobot committed May 21, 2024
1 parent 522aef9 commit 99d214c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,15 @@ jobs:
files: |
submissions/*.json
- uses: actions/checkout@v3
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
path: "fork"

- name: Show changed files
run: |
poetry run smtcomp show --into-comment-file comment.md ${{ steps.changed-files.outputs.all_changed_files }}
poetry run smtcomp show --into-comment-file comment.md --prefix fork/ ${{ steps.changed-files.outputs.all_changed_files }}
- name: PR comment with file
uses: thollander/actions-comment-pull-request@v2
Expand Down
4 changes: 4 additions & 0 deletions smtcomp/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,15 @@
@app.command()
def show(
files: list[Path] = typer.Argument(None),
prefix: Optional[Path] = None,
into_comment_file: Annotated[Optional[Path], typer.Option(help="Write the summary into the given file")] = None,
) -> None:
"""
Show information about a solver submission
"""

if prefix is not None:
files = list(map(prefix.joinpath,files))

def read_submission(file: Path) -> defs.Submission:
try:
Expand Down

0 comments on commit 99d214c

Please sign in to comment.