Skip to content

Commit

Permalink
Use checkout action to set version output (ros-navigation#3492)
Browse files Browse the repository at this point in the history
Otherwise there is no source code to use to set the version output.
Fixes: ros-navigation#3491
  • Loading branch information
ruffsl authored Mar 20, 2023
1 parent 6cf7703 commit 359d0b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/update_ci_image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ jobs:
trigger: ${{ steps.check.outputs.trigger }}
no_cache: ${{ steps.check.outputs.no_cache }}
steps:
- uses: actions/checkout@v3
- name: "Check package updates"
id: check
if: github.event_name == 'push'
run: |
version=$(grep -oP '(?<=<version>).*?(?=</version>)' navigation2/package.xml)
echo "version=${version}" >> $GITHUB_OUTPUT
echo "trigger=true" >> $GITHUB_OUTPUT
echo "no_cache=false" >> $GITHUB_OUTPUT
check_ci_image:
Expand Down Expand Up @@ -74,9 +77,6 @@ jobs:
- name: Set build config
id: config
run: |
version=$(grep -oP '(?<=<version>).*?(?=</version>)' navigation2/package.xml)
echo "version=${version}" >> $GITHUB_OUTPUT
no_cache=false
if [ "${{needs.check_ci_files.outputs.no_cache}}" == 'true' ] || \
[ "${{needs.check_ci_image.outputs.no_cache}}" == 'true' ]
Expand Down

0 comments on commit 359d0b6

Please sign in to comment.