mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-20 00:51:20 -08:00
70 lines
2.0 KiB
YAML
70 lines
2.0 KiB
YAML
# This workflow will rebase `l10n_main` and `pontoon` with `main` changes, it's for making the
|
|
# translation bots not try making commits to main
|
|
|
|
name: Rebase translation branches to main
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
rebase-l10n:
|
|
if: ${{ github.repository == 'SlimeVR/SlimeVR-Server' }}
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
ref: l10n_main
|
|
submodules: recursive
|
|
# Get all the git history for rebasing
|
|
fetch-depth: 0
|
|
- name: Rebase
|
|
run: |
|
|
git config --local user.name "slimevr-bot"
|
|
git config --local user.email '[email protected]'
|
|
git fetch origin main
|
|
git rebase origin/main
|
|
git submodule update
|
|
- name: Push rebase
|
|
uses: github-actions-x/[email protected]
|
|
with:
|
|
github-token: ${{ secrets.PONTOON_BOT_KEY }}
|
|
push-branch: "l10n_main"
|
|
commit-message: "update"
|
|
force-push: "true"
|
|
name: "slimevr-bot"
|
|
email: "[email protected]"
|
|
|
|
rebase-pontoon:
|
|
if: ${{ github.repository == 'SlimeVR/SlimeVR-Server' }}
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
ref: pontoon
|
|
submodules: recursive
|
|
# Get all the git history for rebasing
|
|
fetch-depth: 0
|
|
- name: Rebase
|
|
run: |
|
|
git config --local user.name "slimevr-bot"
|
|
git config --local user.email '[email protected]'
|
|
git fetch origin main
|
|
git rebase origin/main
|
|
git submodule update
|
|
- name: Push rebase
|
|
uses: github-actions-x/[email protected]
|
|
with:
|
|
github-token: ${{ secrets.PONTOON_BOT_KEY }}
|
|
push-branch: "pontoon"
|
|
commit-message: "update"
|
|
force-push: "true"
|
|
name: "slimevr-bot"
|
|
email: "[email protected]"
|