Merge Mirror #619
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
name: Merge Mirror | |
on: | |
schedule: | |
- cron: '5 0 * * *' | |
jobs: | |
merge: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Attempt to merge mirror branch | |
run: | | |
git fetch | |
git checkout doggy | |
git merge origin/mirror || exit 0 | |
- name: Create pull request | |
uses: devops-infra/[email protected] | |
with: | |
title: auto-merge mirror branch | |
branch: doggy | |
head: mirror | |
body: "**automated**" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
if: ${{ steps.merge.outcome == 'failure' }} |