diff --git a/.github/workflows/maintenance.yml b/.github/workflows/maintenance.yml new file mode 100644 index 00000000000000..7ff51b46d984aa --- /dev/null +++ b/.github/workflows/maintenance.yml @@ -0,0 +1,18 @@ +name: 'Maintenance' +on: + # So that PRs touching the same files as the push are updated + push: + # So that the `dirtyLabel` is removed if conflicts are resolved + pull_request: + types: [synchronize] + +jobs: + main: + runs-on: ubuntu-latest + steps: + - name: check if prs are dirty + uses: eps1lon/actions-label-merge-conflict@releases/1.x + with: + dirtyLabel: 'PR: needs rebase' + removeOnDirtyLabel: 'PR: ready to ship' + repoToken: '${{ secrets.GITHUB_TOKEN }}'