Skip to content

Rework automerge

Rework automerge #401

Workflow file for this run

---

Check failure on line 1 in .github/workflows/automerge.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/automerge.yaml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: automerge
name: automerge
on:
workflow_run:
types:
- completed
workflows:
- "ci"
jobs:
print-debug-info:
name: Print debug info
runs-on: ubuntu-latest
steps:
- uses: hmarr/debug-action@v2
check-mergeability:
if: ${{ github.event.workflow_run.conclusion == 'success' && github.actor == 'nsmbot' }}
uses: networkservicemesh/.github/.github/workflows/check-mergeability.yaml@main
secrets:
token: ${{ secrets.NSM_BOT_GITHUB_TOKEN }}
automerge:
needs: [check-mergeability]
if: ${{ needs.check-mergeability.outputs.pr_branch_ref != '' }}
run: gh pr merge ${{ github.event.workflow_run.head_branch }} --squash --delete-branch
env:
GH_TOKEN: ${{ secrets.NSM_BOT_GITHUB_TOKEN }}