Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Perfect in combination with xt0rted/pull-request-comment-branch #8

Open
janpio opened this issue Sep 16, 2020 · 1 comment
Open

Perfect in combination with xt0rted/pull-request-comment-branch #8

janpio opened this issue Sep 16, 2020 · 1 comment

Comments

@janpio
Copy link

janpio commented Sep 16, 2020

This action helped me to get the branch name of the PR the comment was put onto so I could check out the correct code: https://github.com/xt0rted/pull-request-comment-branch

https://github.com/prisma/prisma-labelsync/blob/e9736242a701df4d145471a95ee8d9c927726ec3/.github/workflows/labelsync.yml#L12-L30

@BhumikaSaini
Copy link

Alternatively, if the requirement is to just checkout the PR, the following can also be done:

      - name: Checkout pull request
        if: steps.check.outputs.triggered == 'true'
        env:
          GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
        run: hub pr checkout ${{github.event.issue.number}}

source: actions/checkout#331 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants