Skip to content

update

update #2

Workflow file for this run

name: test
on:
push:
branches: [test]
jobs:
get-changed-files:
runs-on: ubuntu-latest
steps:
- name: Fetch source code
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v45
with:
dir_names: "true"
- name: check-match
id: check-match
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
ALL_CHANGED_FILES_COUNT: ${{ steps.changed-files.outputs.all_changed_files_count }}
VALUE: ${{ matrix.value }}
run: |
MATCH_FOUND=false
for file in ${ALL_CHANGED_FILES}; do
if [[ "$file" == "${VALUE}" ]]; then
echo "Matrix value '$value' matches changed file '$file'."
MATCH_FOUND=true
break
fi
done
if [ "$MATCH_FOUND" = "true" ]; then
echo "::set-output name=match::true"
else
echo "::set-output name=match::false"
fi