Skip to content

Commit

Permalink
chore: CI to automate updates of webview components
Browse files Browse the repository at this point in the history
  • Loading branch information
jansorg committed Mar 11, 2024
1 parent 4494a4b commit 260c1fb
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/webview-update.yml
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"

0 comments on commit 260c1fb

Please sign in to comment.