-
Notifications
You must be signed in to change notification settings - Fork 80
44 lines (43 loc) · 2.03 KB
/
update-web.yml
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
36
37
38
39
40
41
42
43
44
# This workflow will automatically create a PR in deephaven-core to update the WEB_VERSION
name: Update web version
on: workflow_dispatch
jobs:
update-web:
runs-on: ubuntu-22.04
steps:
- name: Checkout latest
uses: actions/checkout@v4
with:
ref: main
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Get web versions
id: web_versions
run: |
echo "WEB_VERSION=$(npm info @deephaven/code-studio@latest version)" >> $GITHUB_OUTPUT
echo "GRID_VERSION=$(npm info @deephaven/embed-grid@latest version)" >> $GITHUB_OUTPUT
echo "CHART_VERSION=$(npm info @deephaven/embed-chart@latest version)" >> $GITHUB_OUTPUT
echo "WIDGET_VERSION=$(npm info @deephaven/embed-widget@latest version)" >> $GITHUB_OUTPUT
- name: Update deephaven-core
env:
WEB_VERSION: ${{steps.web_versions.outputs.WEB_VERSION}}
GRID_VERSION: ${{steps.web_versions.outputs.GRID_VERSION}}
CHART_VERSION: ${{steps.web_versions.outputs.CHART_VERSION}}
WIDGET_VERSION: ${{steps.web_versions.outputs.WIDGET_VERSION}}
run: |
sed -i "s/^ARG WEB_VERSION=.*/ARG WEB_VERSION=$WEB_VERSION/" ./web/client-ui/Dockerfile
sed -i "s/^ARG GRID_VERSION=.*/ARG GRID_VERSION=$GRID_VERSION/" ./web/client-ui/Dockerfile
sed -i "s/^ARG CHART_VERSION=.*/ARG CHART_VERSION=$CHART_VERSION/" ./web/client-ui/Dockerfile
sed -i "s/^ARG WIDGET_VERSION=.*/ARG WIDGET_VERSION=$WIDGET_VERSION/" ./web/client-ui/Dockerfile
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
env:
WEB_VERSION: ${{steps.web_versions.outputs.WEB_VERSION}}
with:
base: main
title: Update web version ${{ env.WEB_VERSION }}
body: Release notes https://github.com/deephaven/web-client-ui/releases/tag/v${{ env.WEB_VERSION }}
branch: deephaven-bot/update-web-${{ env.WEB_VERSION }}
delete-branch: true