-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 988 Bytes
/
Copy pathdev_sync.yml
File metadata and controls
35 lines (28 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Branch dev in sync to branch next
description: |
The `dev` branch is just `next` without the `.gitmodules` file, to allow for deploying
this package from source without attempting to also clone the test data repository.
on:
push:
branches:
- next
jobs:
sync_deploy_dev:
runs-on: ubuntu-24.04
steps:
- name: Checkout repo
uses: actions/checkout@v6
with:
fetch-depth: 0 # Needed to switch branches
ref: next # Explicitly specify the branch to check out
- name: Configure git
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
- name: Create dev branch
run: |
git checkout -B dev
# Remove submodule-related stuff
git rm -rf .gitmodules tests/mr_reduction-data || true
git commit -am "Sync from next without submodules" || echo "No changes"
git push origin dev --force