File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,32 @@ outputs:
82
82
runs :
83
83
using : " composite"
84
84
steps :
85
+ - name : find dependencies
86
+ id : find-dependencies
87
+ run : | # bat
88
+ : Find dependencies
89
+ file_path="lake-manifest.json"
90
+
91
+ if [ ! -f "$file_path" ]; then
92
+ echo "File not found: $file_path"
93
+ exit 1
94
+ fi
95
+
96
+ line_count=$(wc -l < "$file_path")
97
+ echo "Number of lines in $file_path: $line_count"
98
+
99
+ if [ "$line_count" -ge 10 ]; then
100
+ echo "the repository has some dependencies."
101
+ echo "outcome=has-depencency" >> $GITHUB_OUTPUT
102
+ else
103
+ echo "the repository has no dependencies."
104
+ echo "outcome=no-depencency" >> $GITHUB_OUTPUT
105
+ fi
106
+ shell : bash
107
+ working-directory : ${{ inputs.lake_package_directory }}
108
+
85
109
- name : Update lean-toolchain
110
+ if : ${{ steps.find-dependencies.outputs.outcome == 'no-depencency' }}
86
111
run : |
87
112
: Update lean-toolchain
88
113
node ${{ github.action_path }}/scripts/getLatest.js
You can’t perform that action at this time.
0 commit comments