comment-on-pr icon indicating copy to clipboard operation
comment-on-pr copied to clipboard

Is checkout step really necessary?

Open Ameausoone opened this issue 3 years ago • 2 comments

In your example:

    steps:
      - uses: actions/checkout@master
      - uses: harupy/comment-on-pr@master
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          filename: template.md

Does the step actions/checkout@master is really necessary for add a comment on a PR ?

Pipeline would be slightly faster without checkout step.

Ameausoone avatar Dec 08 '20 10:12 Ameausoone

I think this is due to the template.md. If you don't check out, you don't have the template

Thomas-Boi avatar Jan 09 '21 19:01 Thomas-Boi

It's possible to create arbitary file on the fly and use this file as the template. A caveat is that the action by default looks up files in .github/workflow or you use filename: ../../template.md to go back to the current directory.

gqqnbig avatar Apr 01 '21 05:04 gqqnbig