org.yuzu_emu.yuzu/.github/workflows/auto-merge.yml

29 lines
780 B
YAML
Raw Normal View History

2022-10-12 03:52:25 +00:00
name: auto-merge
on:
issue_comment:
schedule:
- cron: '14 12 * * *'
workflow_dispatch: {}
jobs:
merge:
runs-on: ubuntu-latest
if: ${{ (github.event.issue && github.event.issue.pull_request) || !github.event.issue }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
- run: npm install execa@5
2022-10-12 21:44:41 +00:00
- uses: actions/github-script@v6
2022-10-12 03:52:25 +00:00
name: Check and Merge
id: check-changes
with:
script: |
const execa = require("execa");
const mergebot = require('./.github/workflows/merge.js');
2022-10-12 04:35:27 +00:00
const branch = await mergebot.checkChanges(github, context);
2022-10-12 03:52:25 +00:00
if (branch)
2022-10-12 21:12:20 +00:00
await mergebot.mergeChanges(branch, execa);