From ddc2a28ef828e88ba1806e971b293b418e62d3d6 Mon Sep 17 00:00:00 2001 From: ruffsl Date: Mon, 20 Mar 2023 21:59:55 +0100 Subject: [PATCH] Avoid reserved env `version` --- .github/workflows/update_ci_image.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update_ci_image.yaml b/.github/workflows/update_ci_image.yaml index 54c0bf2e59..ba17a05fde 100644 --- a/.github/workflows/update_ci_image.yaml +++ b/.github/workflows/update_ci_image.yaml @@ -28,11 +28,11 @@ jobs: id: check if: github.event_name == 'push' run: | - version=$(grep -oP '(?<=).*?(?=)' navigation2/package.xml) + nav2_version=$(grep -oP '(?<=).*?(?=)' navigation2/package.xml) pwd ls -alh - echo $version - echo "version=${version}" >> $GITHUB_OUTPUT + echo $nav2_version + echo "nav2_version=${nav2_version}" >> $GITHUB_OUTPUT echo "trigger=true" >> $GITHUB_OUTPUT echo "no_cache=false" >> $GITHUB_OUTPUT check_ci_image: @@ -110,7 +110,7 @@ jobs: target: builder tags: | ghcr.io/${{ github.repository }}:${{ github.ref_name }} - ghcr.io/${{ github.repository }}:${{ github.ref_name }}-${{ steps.config.outputs.version }} + ghcr.io/${{ github.repository }}:${{ github.ref_name }}-${{ steps.config.outputs.nav2_version }} - name: Image digest if: steps.config.outputs.trigger == 'true' run: echo ${{ steps.docker_build.outputs.digest }}