Skip to content

Commit

Permalink
Update builder
Browse files Browse the repository at this point in the history
  • Loading branch information
lildude committed Mar 29, 2024
1 parent bd3f6e8 commit 5d1dc93
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,22 @@ jobs:
- name: Get changed files
id: changed_files
uses: jitterbit/get-changed-files@v1
run: |
declare -a changed
for file in ${{ env.MONITORED_FILES }}; do
[[ -n ${changed} ]] && break
if [[ "${{ steps.changed_files.outputs.all }}" =~ $file ]]; then
changed=true
fi
done
if [[ -n ${changed} ]]; then
echo "A monitored file has changed.";
echo "::set-output name=changed::true";
else
echo "None of the monitored files have changed.";
fi
build:
needs: init
runs-on: ubuntu-latest
Expand Down Expand Up @@ -74,6 +89,6 @@ jobs:
args: |
${{ env.BUILD_ARGS }} \
--${{ matrix.arch }} \
--target /data/ghostfolio \
--target /data/${GITHUB_REPOSITORY##*/} \
--image "${{ steps.check.outputs.image }}" \
--addon

0 comments on commit 5d1dc93

Please sign in to comment.