-
Notifications
You must be signed in to change notification settings - Fork 21
46 lines (37 loc) · 1.06 KB
/
update_shiny.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
45
46
name: Pull latest py-shiny submodule
on:
workflow_dispatch:
push:
branches:
- barret_test
jobs:
update-shiny:
name: Update py-shiny submodule
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Check out submodules
run: |
make submodules
- name: Pull latest py-shiny
run: |
make submodules-pull
- name: Build shinylive
run: |
make all
- name: Set up git within GHA
uses: actions4git/setup-git@v1
- name: Commit and push changes
run: |
PY_SHINY_SHA=$(git -C packages/py-shiny rev-parse --short HEAD)
git add packages/py-shiny shinylive_lock.json && \
git commit --message "Pull latest posit-dev/py-shiny@$PY_SHINY_SHA" && \
git push origin HEAD:barret_test