File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 22
22
FOSSA_ANALYZE_RESULT : " "
23
23
24
24
steps :
25
- - uses : actions/checkout@v3
25
+ - uses : actions/checkout@v4
26
26
- uses : ruby/setup-ruby@v1
27
27
with :
28
- ruby-version : ' 3.2'
28
+ ruby-version : ' 3.3'
29
+ - name : Ensure that a Gemfile.lock file exists for each Gemfile file
30
+ run : |
31
+ echo "Ensuring that Gemfile.lock files exist..."
32
+ for gemfile in $(find . -name Gemfile -not -path './test/**' -not -path './spec/**'); do
33
+ dir=${gemfile%/*}
34
+ echo "Found Gemfile at $dir"
35
+ if [[ -e "$dir/Gemfile.lock" ]]; then
36
+ echo "Found Gemfile.lock at $dir"
37
+ else
38
+ echo "No Gemfile.lock found at $dir - generating one..."
39
+ bundle lock --gemfile "$dir/Gemfile"
40
+ fi
41
+ done
29
42
- id : fossa-cli
30
43
uses : newrelic/.github/.github/composite/fossa-composite@main
You can’t perform that action at this time.
0 commit comments