Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

UpdateToTheUpstream #216

UpdateToTheUpstream

UpdateToTheUpstream #216

name: UpdateToTheUpstream
on:
schedule:
- cron: "0 8 * * 5"
workflow_dispatch:
jobs:
pr-for-merging-upstream:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: merge-push
run: |
git config --global user.email "monaka@monami-ya.com"
git config --global user.name "Masaki Muranaka (bot)"
git remote add up https://github.com/eclipse-che/che-theia.git
git fetch --all
git checkout -b prp-update-to-the-upstream
git merge up/main -m 'Update to the upstream.'
git push -u origin prp-update-to-the-upstream
- name: create PR
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh pr create -B azure-pipelines -t "[Scheduled] Update to the upstream" -b ''
- name: Notify to Google Chat
uses: Co-qn/google-chat-notification@releases/v1
with:
name: Update to the upstream
url: ${{ secrets.GOOGLE_CHAT_WEBHOOK }}
status: ${{ job.status }}
if: always()