Skip to content

Update backend_pytorch_native.py | Fixes #2056 (#2057) #29

Update backend_pytorch_native.py | Fixes #2056 (#2057)

Update backend_pytorch_native.py | Fixes #2056 (#2057) #29

name: Auto-Update Dev Branch from Master
on:
push:
branches:
- master # Trigger workflow on commits to 'dev' branch
jobs:
update-main:
runs-on: ubuntu-latest
permissions:
contents: write # Required to push to protected branches
steps:
- name: Checkout Main Branch
uses: actions/checkout@v4
with:
ref: dev
fetch-depth: 0
ssh-key: ${{ secrets.DEPLOY_KEY }}
- name: Configure Git User
run: |
git config user.name "github-actions"
git config user.email "github-actions@github.com"
- name: Merge auto-update into dev
run: |
git fetch origin master:master
git merge --no-ff master -m "Auto-merge updates from master branch"
- name: Push Changes to Main
run: |
git push origin dev