File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,19 @@ jobs:
2121 persist-credentials : false
2222 - name : Get changed files
2323 id : changed-files
24- uses : tj-actions/changed-files@v44
25- with :
26- files : |
27- lib/generators/**
28- rakelib/example_type.rb
29- rakelib/example_config.yml
30- rakelib/examples.rake
31- rakelib/run_rspec.rake
24+ run : |
25+ CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} -- \
26+ lib/generators/ \
27+ rakelib/example_type.rb \
28+ rakelib/example_config.yml \
29+ rakelib/examples.rake \
30+ rakelib/run_rspec.rake)
31+ if [ -n "$CHANGED_FILES" ]; then
32+ ANY_CHANGED=true
33+ else
34+ ANY_CHANGED=false
35+ fi
36+ echo "any_changed=$ANY_CHANGED" >> "$GITHUB_OUTPUT"
3237 - name : Setup Ruby
3338 uses : ruby/setup-ruby@v1
3439 with :
You can’t perform that action at this time.
0 commit comments