diff --git a/.github/workflows/instant-merge.yaml b/.github/workflows/instant-merge.yaml new file mode 100644 index 0000000000..b0b6909a1a --- /dev/null +++ b/.github/workflows/instant-merge.yaml @@ -0,0 +1,26 @@ +name: Instant Merge Konflux PRs + +on: + pull_request: + types: + - opened + paths: + - manifests/base/params-latest.env + +permissions: + contents: write + pull-requests: write + checks: write + security-events: write + statuses: write + +jobs: + instant-merge: + runs-on: ubuntu-latest + steps: + - name: instant-merge + if: ${{ github.event.sender.login == 'red-hat-konflux[bot]' && ( contains(github.event.pull_request.title, 'Update odh-workbench-jupyter-') || contains(github.event.pull_request.title, 'Update odh-workbench-codeserver-') || contains(github.event.pull_request.title, 'Update odh-pipeline-runtime-') ) }} + env: + GITHUB_TOKEN: ${{ github.token }} + run: | + gh pr merge --merge --admin ${{ github.event.pull_request.html_url }} \ No newline at end of file