Skip to content

Commit

Permalink
Use package.xml validation action
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
azeey committed Apr 24, 2024
1 parent 9795d4f commit ae287f1
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/package_xml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@ on:
jobs:
package-xml:
runs-on: ubuntu-latest
name: package.xml and CMake versions match
name: Validate package.xml
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check versions
run: |
echo "Extract version numbers and compare"
package_xml_version=$(sed -nE 's/\s*<version>([0-9.]*)<\/version>\s*/\1/p' package.xml)
echo "Version in package.xml: ${package_xml_version}"
cmake_version=$(sed -nE 's/^project.*VERSION\s*([0-9.]*).*/\1/p' CMakeLists.txt)
echo "Version in CMake: ${cmake_version}"
[ $package_xml_version = $cmake_version ]
- uses: gazebo-tooling/action-gz-ci/validate_package_xml@jammy

0 comments on commit ae287f1

Please sign in to comment.