Skip to content

Commit 3dd1696

Browse files
[github] only deploy hal9 app once
1 parent 3ebd70f commit 3dd1696

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/apps-devel.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ jobs:
3434
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
3535
HAL9_TOKEN: ${{ secrets.HAL9_TOKEN_DEVEL }}
3636
run: |
37+
if echo "${ALL_CHANGED_FILES}" | grep -q "apps/hal9/"; then
38+
echo "apps/hal9 changed"
39+
hal9 deploy apps/hal9 --name hal9 --access public --url https://api.devel.hal9.com --title Hal9 --description "Conversations and content creation";
40+
fi
41+
3742
for file in ${ALL_CHANGED_FILES}; do
3843
echo "$file was changed"
3944
if [[ "$file" == apps/flux/* ]]; then
@@ -42,9 +47,6 @@ jobs:
4247
if [[ "$file" == apps/echo/* ]]; then
4348
hal9 deploy apps/echo --name ECHO --access public --url https://api.devel.hal9.com --title Echo --description "Echoes user input";
4449
fi
45-
if [[ "$file" == apps/hal9/* ]]; then
46-
hal9 deploy apps/hal9 --name hal9 --access public --url https://api.devel.hal9.com --title Hal9 --description "Conversations and content creation";
47-
fi
4850
if [[ "$file" == apps/browser/* ]]; then
4951
hal9 deploy apps/browser --name browser --access unlisted --url https://api.devel.hal9.com --title Browser --description "Capable of browsing the web";
5052
fi

.github/workflows/apps-prod.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ jobs:
3434
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
3535
HAL9_TOKEN: ${{ secrets.HAL9_TOKEN }}
3636
run: |
37+
if echo "${ALL_CHANGED_FILES}" | grep -q "apps/hal9/"; then
38+
echo "apps/hal9 changed"
39+
hal9 deploy apps/hal9 --name hal9 --access public --title Hal9 --description "Conversations and content creation";
40+
fi
41+
3742
for file in ${ALL_CHANGED_FILES}; do
3843
echo "$file was changed"
3944
if [[ "$file" == apps/flux/* ]]; then
@@ -42,9 +47,6 @@ jobs:
4247
if [[ "$file" == apps/echo/* ]]; then
4348
hal9 deploy apps/echo --name ECHO --access public --title Echo --description "Echoes user input";
4449
fi
45-
if [[ "$file" == apps/hal9/* ]]; then
46-
hal9 deploy apps/hal9 --name hal9 --access public --title Hal9 --description "Conversations and content creation";
47-
fi
4850
if [[ "$file" == apps/browser/* ]]; then
4951
hal9 deploy apps/browser --name browser --access unlisted --title Browser --description "Capable of browsing the web";
5052
fi

0 commit comments

Comments
 (0)