Skip to content

Commit

Permalink
Write and read from correct output mapping (#3494)
Browse files Browse the repository at this point in the history
* Revert "Change directory to inside checked out repo (#3493)"

This reverts commit 332c1fb.

* Add `version` to outputs for check step
and use output from `check` id

* Use output from check_ci_files job
  • Loading branch information
ruffsl authored Mar 20, 2023
1 parent 332c1fb commit 0c6ed89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update_ci_image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
name: Check CI Files
runs-on: ubuntu-latest
outputs:
version: ${{ steps.check.outputs.version }}
trigger: ${{ steps.check.outputs.trigger }}
no_cache: ${{ steps.check.outputs.no_cache }}
steps:
Expand All @@ -27,7 +28,6 @@ jobs:
id: check
if: github.event_name == 'push'
run: |
cd navigation2
version=$(grep -oP '(?<=<version>).*?(?=</version>)' navigation2/package.xml)
echo "version=${version}" >> $GITHUB_OUTPUT
echo "trigger=true" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -107,7 +107,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 }}-${{ needs.check_ci_files.outputs.version }}
- name: Image digest
if: steps.config.outputs.trigger == 'true'
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit 0c6ed89

Please sign in to comment.