Skip to content

Commit 359d0b6

Browse files
authored
Use checkout action to set version output (#3492)
Otherwise there is no source code to use to set the version output. Fixes: #3491
1 parent 6cf7703 commit 359d0b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/update_ci_image.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,13 @@ jobs:
2222
trigger: ${{ steps.check.outputs.trigger }}
2323
no_cache: ${{ steps.check.outputs.no_cache }}
2424
steps:
25+
- uses: actions/checkout@v3
2526
- name: "Check package updates"
2627
id: check
2728
if: github.event_name == 'push'
2829
run: |
30+
version=$(grep -oP '(?<=<version>).*?(?=</version>)' navigation2/package.xml)
31+
echo "version=${version}" >> $GITHUB_OUTPUT
2932
echo "trigger=true" >> $GITHUB_OUTPUT
3033
echo "no_cache=false" >> $GITHUB_OUTPUT
3134
check_ci_image:
@@ -74,9 +77,6 @@ jobs:
7477
- name: Set build config
7578
id: config
7679
run: |
77-
version=$(grep -oP '(?<=<version>).*?(?=</version>)' navigation2/package.xml)
78-
echo "version=${version}" >> $GITHUB_OUTPUT
79-
8080
no_cache=false
8181
if [ "${{needs.check_ci_files.outputs.no_cache}}" == 'true' ] || \
8282
[ "${{needs.check_ci_image.outputs.no_cache}}" == 'true' ]

0 commit comments

Comments
 (0)