paths-filter icon indicating copy to clipboard operation
paths-filter copied to clipboard

Document usage in a merge queue

Open AntonNiklasson opened this issue 2 years ago • 0 comments

I'm using this action in a merge queue. I'm not sure I've gotten all the details right just yet, but I think it works.

Merge queues are still in beta: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue

The main issue I ran into was that there was no git repository available by default, like you get on the pull_request event. I'm currently doing this:

  files-changed:
    runs-on: [ self-hosted ]
    outputs:
      any: ${{ steps.changes.outputs.any }}
    steps:
      - uses: actions/checkout@v3
      - uses: dorny/paths-filter@v2
        id: changes
        with:
          base: ${{ github.event.merge_group.base_ref}}
          ref: ${{ github.event.merge_group.head_ref }}
          filters: |
            ui:
              - 'ui/**'

AntonNiklasson avatar Mar 24 '23 10:03 AntonNiklasson