Skip to content

Commit ae69738

Browse files
committed
Added workflow to build next branch
1 parent 070c589 commit ae69738

1 file changed

Lines changed: 20 additions & 3 deletions

File tree

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,27 @@
1-
name: Build on DS update
1+
name: Prepare next branch
22

33
on:
44
workflow_dispatch:
55

6+
permissions:
7+
contents: write
8+
69
jobs:
7-
build:
10+
sync:
811
runs-on: ubuntu-latest
912
steps:
10-
- run: echo "ok"
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Configure git
19+
run: |
20+
git config user.email "github-actions[bot]@users.noreply.github.com"
21+
git config user.name "github-actions[bot]"
22+
23+
- name: Run prepare_next.sh
24+
run: bash bin/prepare_next.sh -v ${{ vars.NEXT_BRANCH_VERSION }} -b ${{ vars.NEXT_BRANCH_SOURCE }}
25+
26+
- name: Push to next branch
27+
run: git push origin HEAD:${{ vars.NEXT_BRANCH_VERSION }}-next

0 commit comments

Comments
 (0)