File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 1
1
name : CI-check
2
2
3
- # Controls when the action will run.
4
3
on :
5
4
push :
6
5
branches-ignore :
7
- - master
6
+ - master
8
7
9
- # Allows you to run this workflow manually from the Actions tab
10
8
workflow_dispatch :
11
9
12
- # A workflow run is made up of one or more jobs that can run sequentially or in parallel
13
10
jobs :
14
11
check :
15
12
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 2
2
3
3
scriptname=$0
4
4
pip3=$( find " /usr/local/bin/" -iname pip3.10)
5
- available_packages=$( $pip3 list --outdated )
5
+ available_packages=$( $pip3 list -o )
6
6
7
7
pip3_package_list () {
8
8
if [ -z " $available_packages " ]; then
9
9
echo " No updates."
10
10
else
11
- $pip3 list --outdated
11
+ $pip3 list -o
12
12
fi
13
13
}
14
14
15
15
pip3_package_update () {
16
16
$pip3 install --upgrade pip
17
- $pip3 list --outdated --format=freeze -- no-cache-dir | cut -d = -f 1 | xargs -n1 " $pip3 " install -U
17
+ $pip3 list -o --no-cache-dir | sed 1,2d | awk ' {print $1} ' | xargs -n1 " $pip3 " install -U
18
18
}
19
19
20
20
# help template
You can’t perform that action at this time.
0 commit comments