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

33 lines
1.3 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: |
echo "Cloning Core"
git clone https://sicampus.ru/gitea/core/template-android-project /core
echo "Cloning Repo"
git clone https://sicampus.ru/gitea/${{ gitea.repository }} /repo
cd /repo
echo "Cloning Remote core"
git remote add core /core
echo "Cloning Fetch core"
git fetch core
echo "Cloning Merge core"
git merge --allow-unrelated-histories core/main
echo "Cloning Push core"
git push origin main --force
echo "OK"
- 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 }}."