Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
MOldtime committed Dec 9, 2024
1 parent e76ac29 commit 256efd7
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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
echo "Checking if '$file' matches matrix value '$VALUE'."
if [[ "$file" == "${VALUE}" ]]; then
echo "Matrix value '$value' matches changed file '$file'."
MATCH_FOUND=true
break
fi
done
echo "{match}={$MATCH_FOUND}" >> $GITHUB_OUTPUT
Binary file removed 1584768629373.png
Binary file not shown.
Binary file removed 1585658020690.png
Binary file not shown.
Binary file removed 1594129198513.jpg
Binary file not shown.
Binary file removed fb8ecfbe7b7c15bc992dab82de41f85e.gif
Binary file not shown.

0 comments on commit 256efd7

Please sign in to comment.