File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,20 @@ 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+ git fetch origin ${{ github.event.before }}
26+ CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} -- \
27+ lib/generators/ \
28+ rakelib/example_type.rb \
29+ rakelib/example_config.yml \
30+ rakelib/examples.rake \
31+ rakelib/run_rspec.rake)
32+ if [ -n "$CHANGED_FILES" ]; then
33+ ANY_CHANGED=true
34+ else
35+ ANY_CHANGED=false
36+ fi
37+ echo "any_changed=$ANY_CHANGED" >> "$GITHUB_OUTPUT"
3238 - name : Setup Ruby
3339 uses : ruby/setup-ruby@v1
3440 with :
You can’t perform that action at this time.
0 commit comments