Commit 92c3261 1 parent 8776312 commit 92c3261 Copy full SHA for 92c3261
File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -65,19 +65,26 @@ jobs:
65
65
name : License check
66
66
runs-on : ubuntu-latest
67
67
container :
68
- image : ghcr.io/cps-test-lab/scenario-execution:${{ github.event.pull_request. base.ref }}
68
+ image : ros:jazzy-ros- base
69
69
steps :
70
70
- name : Checkout code
71
71
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
72
+ - name : Prepare System
73
+ shell : bash
74
+ run : |
75
+ apt update
76
+ apt install -y python3-pip golang-go
77
+ pipx install ros-license-toolkit==1.2.2
78
+ go install github.com/google/[email protected]
72
79
- name : Check for license tags
73
80
shell : bash
74
81
run : |
75
- find . -type f \( -name "*.py" -o -name "*.cpp" -o -name "*.h" \) -exec /go/bin/ addlicense -check {} +
82
+ find . -type f \( -name "*.py" -o -name "*.cpp" -o -name "*.h" \) -exec addlicense -check {} +
76
83
- name : Run ros_license_toolkit for each Package
77
84
shell : bash
78
85
run : |
79
86
git config --global --add safe.directory /__w/scenario-execution/scenario-execution
80
- git config --global --add safe.directory /venvs/ros-license-toolkit
87
+ git config --global --add safe.directory $HOME/.local/bin/
81
88
find . -name "package.xml" | while IFS= read -r pkg_file; do
82
89
pkg_dir=$(dirname "$pkg_file")
83
90
pkg_name=$(basename "$pkg_dir")
86
93
continue
87
94
fi
88
95
echo "Processing package at $pkg_dir"
89
- /python_bin/ros_license_toolkit "$pkg_dir"
96
+ $HOME/.local/bin/ros-license-toolkit "$pkg_dir"
90
97
done
91
98
You can’t perform that action at this time.
0 commit comments