-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: CI to automate updates of webview components
- Loading branch information
Showing
1 changed file
with
60 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,60 @@ | ||
name: "Update Webviews" | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
webview_appmap: | ||
description: 'Update the AppMap webview' | ||
default: false | ||
required: false | ||
type: boolean | ||
webview_findings: | ||
description: 'Update the Findings webview' | ||
default: false | ||
required: false | ||
type: boolean | ||
webview_install_guide: | ||
description: 'Update the Installation Guide webview' | ||
default: false | ||
required: false | ||
type: boolean | ||
webview_navie: | ||
description: 'Update the Navie webview' | ||
default: false | ||
required: false | ||
type: boolean | ||
|
||
jobs: | ||
update_webviews: | ||
name: "Update Webviews" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
name: "Checkout Repository" | ||
|
||
- name: "Update AppMap WebView" | ||
if: inputs.webview_appmap == true | ||
shell: bash | ||
run: ./appland/rebuild.bash | ||
|
||
- name: "Update Findings WebView" | ||
if: inputs.webview_findings == true | ||
shell: bash | ||
run: ./appland-findings/rebuild.bash | ||
|
||
- name: "Update Installation Guide WebView" | ||
if: inputs.webview_install_guide == true | ||
shell: bash | ||
run: ./appland-install-guide/rebuild.bash | ||
|
||
- name: "Update Navie WebView" | ||
if: inputs.webview_navie == true | ||
shell: bash | ||
run: ./appland-navie/rebuild.bash | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v6 | ||
if: inputs.webview_appmap == true || inputs.webview_findings == true || inputs.webview_install_guide == true || inputs.webview_navie == true | ||
with: | ||
path: ./appland* | ||
title: "Update Webviews" | ||
commit-message: "Update webviews to latest versions" |