Test changed-files action
All checks were successful
/ build-image (push) Successful in 1m4s

This commit is contained in:
Peter Cai 2024-02-15 15:13:37 -05:00
parent c88c7f2499
commit 249d882272

View file

@ -19,8 +19,16 @@ jobs:
with:
submodules: recursive
- name: Confirm Podman works
run: sudo -u podman podman run --rm hello-world
- name: Detect Directory Changes
id: changed-dirs
uses: https://github.com/tj-actions/changed-files@v42
with:
dir_names: 'true'
- name: Build & Push
run: sudo -u podman ./build-image.sh element-web
env:
ALL_CHANGED_DIRS: ${{ steps.changed-dirs.outputs.all_changed_files }}
run: |
for file in ${ALL_CHANGED_DIRS}; do
echo "sudo -u podman ./build-image.sh ${file}"
done