📥 Merge pull requests #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
on: # yamllint disable-line rule:truthy | |
workflow_run: | |
types: | |
- completed | |
workflows: | |
- '🧪 Test Docker images' | |
name: 📥 Merge pull requests | |
jobs: | |
merge: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
if: > | |
github.event.workflow_run.event == 'pull_request' && | |
github.event.workflow_run.conclusion == 'success' && | |
( | |
(github.actor == 'renovate[bot]' && | |
startsWith(github.event.workflow_run.head_commit.message, 'deps(deps)') | |
) || | |
(github.actor == 'lotyp' && | |
startsWith(github.event.workflow_run.head_commit.message, 'chore(master)') | |
) | |
) | |
steps: | |
- name: 🙋♂️ Request reviewer from @way-finder-bot | |
uses: wayofdev/gh-actions/actions/github/pull-request/[email protected] | |
with: | |
reviewer: 'way-finder-bot' | |
github-token: "${{ secrets.WAY_FINDER_BOT_TOKEN }}" | |
- name: 🙋♂️ Assign @way-finder-bot | |
uses: wayofdev/gh-actions/actions/github/pull-request/[email protected] | |
with: | |
assignee: 'way-finder-bot' | |
github-token: "${{ secrets.WAY_FINDER_BOT_TOKEN }}" | |
- name: ✅ Approve pull request | |
uses: wayofdev/gh-actions/actions/github/pull-request/[email protected] | |
with: | |
github-token: "${{ secrets.WAY_FINDER_BOT_TOKEN }}" |