File tree Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,21 @@ 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+ BASE_SHA=${{ github.event.pull_request.base.sha || github.event.before }}
26+ git fetch origin $BASE_SHA
27+ CHANGED_FILES=$(git diff --name-only $BASE_SHA ${{ github.sha }} -- \
28+ lib/generators/ \
29+ rakelib/example_type.rb \
30+ rakelib/example_config.yml \
31+ rakelib/examples.rake \
32+ rakelib/run_rspec.rake)
33+ if [ -n "$CHANGED_FILES" ]; then
34+ ANY_CHANGED=true
35+ else
36+ ANY_CHANGED=false
37+ fi
38+ echo "any_changed=$ANY_CHANGED" >> "$GITHUB_OUTPUT"
3239 - name : Setup Ruby
3340 uses : ruby/setup-ruby@v1
3441 with :
7986 echo -e "Already installed $(google-chrome --version)\n"
8087 MINIMUM_REQUIRED_CHROME_VERSION=75
8188 INSTALLED_CHROME_MAJOR_VERSION="$(google-chrome --version | tr ' .' '\t' | cut -f3)"
82- if [[ $INSTALLED_CHROME_MAJOR_VERSION < $MINIMUM_REQUIRED_CHROME_VERSION ]]; then
89+ if [[ $INSTALLED_CHROME_MAJOR_VERSION -lt $MINIMUM_REQUIRED_CHROME_VERSION ]]; then
8390 wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
8491 sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
8592 sudo apt-get update
You can’t perform that action at this time.
0 commit comments