File tree Expand file tree Collapse file tree 5 files changed +11
-11
lines changed Expand file tree Collapse file tree 5 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ name: Build
22
33on :
44 release :
5+ types : [created]
56 workflow_dispatch :
67
78jobs :
@@ -16,14 +17,13 @@ jobs:
1617 with :
1718 path : src/coListener
1819
19- - name : Get release version
20- id : get_version
20+ - name : build
2121 run : |
2222 VERSION=${GITHUB_REF#refs/tags/}
23- echo "$VERSION" > version
24-
25- - name : build
26- run : |
23+ echo -n "$VERSION" > src/coListener/ version
24+ cat src/coListener/version
25+ sed -i "s|<version>.*</version>|<version>$VERSION</version>|" src/coListener/package.xml
26+ cat src/coListener/package.xml
2727 /ros_entrypoint.sh colcon build --packages-select coListener
2828
2929 - name : zip-artifact
Original file line number Diff line number Diff line change 11name : Lint
22
33on :
4- push :
4+ pull_request :
55
66jobs :
77 flake8-lint :
Original file line number Diff line number Diff line change 22<?xml-model href =" http://download.ros.org/schema/package_format3.xsd" schematypens =" http://www.w3.org/2001/XMLSchema" ?>
33<package format =" 3" >
44 <name >coListener</name >
5- <version >0 .0.1 </version >
5+ <version >1 .0.0 </version >
66 <description >error code listener</description >
77 <
maintainer email =
" [email protected] " >coffee</
maintainer >
8- <license >BSD </license >
8+ <license >Apache-2.0 license </license >
99
1010 <!-- Other dependencies -->
1111 <exec_depend >rclpy</exec_depend >
Original file line number Diff line number Diff line change 2828 maintainer = "fei" ,
2929 maintainer_email = "[email protected] " ,
3030 description = "error code listener" ,
31- license = "BSD " ,
31+ license = "Apache-2.0 license " ,
3232 tests_require = ["pytest" ],
3333 entry_points = {
3434 "console_scripts" : ["coListener = coListener.main:main" ],
Original file line number Diff line number Diff line change 1- 1.0 .0
1+ 0.9 .0
You can’t perform that action at this time.
0 commit comments