unit-testing/.gitea/workflows/automerge-with-core.yaml
Владимир Шперлинг 0c1af72cdd
Some checks failed
Merge core/template-android-project to this repo / merge-if-needed (push) Failing after 15m21s
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
Обновить .gitea/workflows/automerge-with-core.yaml
2024-03-04 19:47:18 +00:00

37 lines
1.4 KiB
YAML

name: Merge core/template-android-project to this repo
run-name: Merge core/template-android-project to ${{ gitea.repository }}
on:
push:
workflow_dispatch:
jobs:
merge-if-needed:
if: ${{ !contains(gitea.repository, 'core/template-android-project' ) }}
runs-on: ubuntu-latest
steps:
- run: echo "Merge core/template-android-project to ${{ gitea.repository }}"
- run: |
git config --global credential.helper '!f() { sleep 1; echo "username=vladimir-shperling=${{ secrets.PUSH_TOKEN }}"; }; f'
git config --global user.email "test@bot.com"
git config --global user.name "Bot"
- run: git clone https://sicampus.ru/gitea/${{ gitea.repository }} /repo
- run: |
cd /repo
git remote add upstream https://sicampus.ru/gitea/core/template-android-project.git
- run: |
cd /repo
git fetch upstream
- run: |
cd /repo
git rebase upstream/main -s ours
- run: |
cd /repo
git push --force
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- run: echo "🍏 This job's status is ${{ job.status }}."
- run: echo "I'm merge correct"