Skip to content

Commit 1700447

Browse files
Update deploy.yml
1 parent 7fda77d commit 1700447

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,16 @@ permissions:
1313
jobs:
1414
update-submodule:
1515
runs-on: ubuntu-latest
16+
outputs:
17+
changed: ${{ steps.changecheck.outputs.changed }}
1618
steps:
1719
- uses: actions/checkout@v4
1820
with:
1921
submodules: recursive
2022
token: ${{ secrets.GH_TOKEN }}
2123

2224
- name: Update registry submodule
25+
id: changecheck
2326
run: |
2427
git submodule update --remote --merge src/registry
2528
if [[ -n "$(git status --porcelain)" ]]; then
@@ -32,7 +35,6 @@ jobs:
3235
else
3336
echo "changed=false" >> $GITHUB_OUTPUT
3437
fi
35-
id: changecheck
3638
3739
build:
3840
needs: update-submodule
@@ -61,6 +63,7 @@ jobs:
6163

6264
deploy:
6365
needs: build
66+
if: needs.update-submodule.outputs.changed == 'true'
6467
runs-on: ubuntu-latest
6568
environment:
6669
name: github-pages

0 commit comments

Comments
 (0)