File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,12 +44,12 @@ jobs:
4444 -
4545 name : Commit and push dist
4646 run : |
47- if [ -n "$(git status --porcelain -- dist)" ]; then
47+ if [ -n "$(git status --porcelain -- dist subaction/matrix/dist )" ]; then
4848 (
4949 set -x
5050 git config user.name "github-actions[bot]"
5151 git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
52- git add dist
52+ git add dist subaction/matrix/dist
5353 git commit -m "chore: update generated content"
5454 git push
5555 )
Original file line number Diff line number Diff line change @@ -40,10 +40,12 @@ RUN --mount=target=/context \
4040 --mount=type=cache,target=/src/node_modules <<EOT
4141 set -e
4242 rsync -a /context/. .
43- rm -rf dist
44- yarn run build
43+ rm -rf dist subaction/matrix/dist
44+ yarn workspaces foreach --all run build
4545 mkdir /out
4646 cp -r dist /out
47+ mkdir -p /out/subaction/matrix
48+ cp -r subaction/matrix/dist /out/subaction/matrix
4749EOT
4850
4951FROM scratch AS build-update
@@ -55,9 +57,9 @@ RUN --mount=target=/context \
5557 set -e
5658 rsync -a /context/. .
5759 git add -A
58- rm -rf dist
60+ rm -rf dist subaction/matrix/dist
5961 cp -rf /out/* .
60- if [ -n "$(git status --porcelain -- dist)" ]; then
62+ if [ -n "$(git status --porcelain -- dist subaction/matrix/dist )" ]; then
6163 echo >&2 'ERROR: Build result differs. Please build first with "docker buildx bake build"'
6264 git status --porcelain -- dist
6365 exit 1
You can’t perform that action at this time.
0 commit comments