-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d0c18fe
commit e16ca28
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Preview build | ||
description: 'Build the preview with UI version number' | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
inputs: | ||
ui-version: | ||
required: true | ||
default: 'v5.11.0' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: git config | ||
run: | | ||
git config user.name "${GITHUB_ACTOR}" | ||
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | ||
- name: Update Submodule | ||
run: | | ||
git submodule update --init --recursive | ||
cd .veda/ui | ||
git fetch --all | ||
git checkout ${{ github.event.inputs.ui-version }} | ||
cd - | ||
git add .veda/ui | ||
git commit -m "Update submodule to version ${{ github.event.inputs.ui-version }}" | ||
- name: Push Changes | ||
run: | | ||
git checkout -b ${{ github.event.inputs.ui-version }} | ||
git push origin ${{ github.event.inputs.ui-version }} | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
title: "Update submodule to version ${{ github.event.inputs.ui-version }}" | ||
body: "This PR updates the submodule to version `${{ github.event.inputs.ui-version }}`." | ||
branch: ${{ github.event.inputs.ui-version }} |