gh-action-get-changed-files icon indicating copy to clipboard operation
gh-action-get-changed-files copied to clipboard

Added support for pull_request_target event type

Open raik0707 opened this issue 4 years ago • 1 comments
trafficstars

What do I want to achieve?

I want to use this action for pull requests from forks with using secrets. So I added this other event type which will work because it has the exact same payload. https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request_target

raik0707 avatar Jul 25 '21 19:07 raik0707

I've just tested this and it works, if anyone wants to try, you can do to:

jobs:
  ok-to-preview:
    if: ${{ github.event.label.name == 'ok-to-preview' }}
    runs-on: ubuntu-latest
    steps:

    - name: Get changed files
      #uses: lots0logs/[email protected]
      uses: Mineflash07/gh-action-get-changed-files@feature/support-pr-target-event # Remove as soon as PR is merged
      with:
        token: ${{ secrets.GITHUB_TOKEN }}

patrick91 avatar Feb 02 '22 00:02 patrick91