VR4RoboticArm2/VR4RoboticArm/Library/PackageCache/com.meta.xr.sdk.movement/.github/workflows/cleanup.yml
IonutMocanu 48cccc22ad Main2
2025-09-08 11:13:29 +03:00

32 lines
811 B
YAML

name: Cleanup deleted files from dev in main
on:
workflow_dispatch:
workflow_call:
jobs:
merge-branch:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: main
- name: Set Git config
run: |
git config --local user.email "actions@github.com"
git config --local user.name "Github Actions"
- name: Merge dev to main
run: |
git pull
git merge --allow-unrelated-histories $(git commit-tree -p main -m "[Automated] Cleanup" origin/dev^{tree})
- name: Rename Samples folder
run: |
git rm Samples.meta
git mv Samples Samples~
git commit --amend --no-edit --allow-empty
- name: Push
run: |
git push