Skip to content

Update single-platform release tests branches #89

Update single-platform release tests branches

Update single-platform release tests branches #89

name: Update single-platform release tests branches
on:
# allow triggering this action manually
workflow_dispatch:
# run every saturday (at noon UTC), so the builds occur during the weekend during lower CI load
schedule:
- cron: '0 12 * * 6'
jobs:
updateSinglePlatformBranches:
name: Merge main into single-platform release test branches
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 'Update branches'
run: |
set -ex
git config user.email "github-actions-single-platform-branch-updater@xamarin.com"
git config user.name "GitHub Actions Single Platform Branch Updater"
for platform in dotnet-iOS dotnet-tvOS dotnet-MacCatalyst dotnet-macOS dotnet legacy legacy-iOS legacy-macOS; do
git checkout -b release-test/only-$platform origin/release-test/only-$platform
git merge origin/main
git push
done