mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
fix(ci): use statuses to trigger automerge (#2745)
This commit is contained in:
19
.github/workflows/automerge.yml
vendored
19
.github/workflows/automerge.yml
vendored
@@ -1,24 +1,6 @@
|
||||
name: Automerge
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
types:
|
||||
- labeled
|
||||
- unlabeled
|
||||
- synchronize
|
||||
- opened
|
||||
- edited
|
||||
- ready_for_review
|
||||
- reopened
|
||||
- unlocked
|
||||
pull_request_review:
|
||||
types:
|
||||
- submitted
|
||||
check_suite:
|
||||
types:
|
||||
- completed
|
||||
status: {}
|
||||
|
||||
jobs:
|
||||
@@ -26,6 +8,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: automerge
|
||||
if: github.event.context == 'Mergeable'
|
||||
uses: "pascalgn/automerge-action@v0.13.0"
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GH_REPO_TOKEN }}"
|
||||
|
||||
20
.github/workflows/test.yml
vendored
20
.github/workflows/test.yml
vendored
@@ -673,3 +673,23 @@ jobs:
|
||||
- name: Rollback on failure
|
||||
if: failure()
|
||||
run: /usr/local/bin/heroku releases:rollback --app karma-demo
|
||||
|
||||
stage-build-and-deploy:
|
||||
name: "=== Build and deploy stage ==="
|
||||
needs:
|
||||
- benchmark-go
|
||||
- webpack-bundle-size
|
||||
- percy
|
||||
- cross-compile
|
||||
- docker
|
||||
- demo-deploy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "Update status"
|
||||
uses: Sibz/github-status-action@v1.1.1
|
||||
with:
|
||||
authToken: ${{ secrets.GH_REPO_TOKEN }}
|
||||
context: "Mergeable"
|
||||
description: "Passed"
|
||||
state: "success"
|
||||
sha: ${{github.event.pull_request.head.sha || github.sha}}
|
||||
|
||||
Reference in New Issue
Block a user