Skip to content

Always return entire file with fileGetContents #1

Always return entire file with fileGetContents

Always return entire file with fileGetContents #1

name: 'Sync master to maetro'
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
sync-master-to-maetro:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.SYNC_CI_PAT }}
- id: sync_commits
name: Sync commits
run: |
# GitHub Actions bot user
git config --global user.name "Mætro Bot"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git checkout release/maetro
if ! git merge master --ff --no-edit
then
# Discard locale conflicts
git checkout --ours -- Shared/installer/locale "Shared/data/MTA San Andreas/MTA/locale"
git add --verbose Shared/installer/locale "Shared/data/MTA San Andreas/MTA/locale"
# Discard install_cef.lua conflicts
git checkout --ours -- utils/buildactions/install_cef.lua
git add --verbose utils/buildactions/install_cef.lua
# We should be done with the merge now
git commit --no-edit
fi
git push origin release/maetro