Skip to content

Commit

Permalink
refactor builder
Browse files Browse the repository at this point in the history
  • Loading branch information
hieulq committed Dec 17, 2023
1 parent 5c085d5 commit 2405dbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/builder.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Builder

#TODO: meshy, need refactoring
env:
BUILD_ARGS: "--test"
MONITORED_FILES: "build.yaml config.yaml Dockerfile"
Expand Down Expand Up @@ -38,7 +38,7 @@ jobs:
for addon in ${{ steps.addons.outputs.addons }}; do
if [[ "${{ steps.changed_files.outputs.all }}" =~ $addon ]]; then
for file in ${{ env.MONITORED_FILES }}; do
if [[ "${{ steps.changed_files.outputs.all }}" =~ $addon/$file ]]; then
if [[ "${{ steps.changed_files.outputs.all }}" =~ $file ]]; then
if [[ ! "${changed_addons[@]}" =~ $addon ]]; then
changed_addons+=("\"${addon}\",");
fi
Expand All @@ -52,7 +52,7 @@ jobs:
if [[ -n ${changed} ]]; then
echo "Changed add-ons: $changed";
echo "changed=true" >> $GITHUB_OUTPUT;
echo "addons=[$changed]" >> $GITHUB_OUTPUT;
echo "addons=['atm0s-decentralized-home-assistant-proxy']" >> $GITHUB_OUTPUT;
else
echo "No add-on had any monitored files changed (${{ env.MONITORED_FILES }})";
fi
Expand Down
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ schema:
tcp_connector_addr: str
http_dest: str
https_dest: str
local_key: str
local_key: str

0 comments on commit 2405dbd

Please sign in to comment.