Skip to content

Commit fa41497

Browse files
authored
Merge pull request #13 from sabaini/fix/ci-mod-files
Workflow: check deleted files as well
2 parents 81a11d7 + f76e1d5 commit fa41497

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build-and-test.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
env:
3030
INPUT_PART: ${{ inputs.part }}
3131
GITHUB_EVENT_NAME: ${{ github.event_name }}
32+
ALL_MOD_FILES: ${{ steps.changed-files.outputs.all_modified_files }}
3233
run: |
3334
if [ "$GITHUB_EVENT_NAME" = "workflow_dispatch" ]; then
3435
if [ -n "$INPUT_PART" ]; then
@@ -40,9 +41,10 @@ jobs:
4041
fi
4142
else
4243
# Automatic run: use changed-files to determine modified charms
44+
echo "Modified files to eval: ${ALL_MOD_FILES}"
4345
components=()
4446
# Retrieve components with a 'tox.ini' file.
45-
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
47+
for file in ${ALL_MOD_FILES} ; do
4648
component=$(echo "$file" | cut -d "/" -f1)
4749
if [[ -f "./$component/charmcraft.yaml" ]]; then
4850
# This is a charm.

0 commit comments

Comments
 (0)