Skip to content

Commit be77902

Browse files
authored
chore: plumb outputs from split-input to release-sdk job (#209)
Looking at my test run, I believe the outputs aren't actually made available to the release job the way I had it setup - just echoing to `$GITHUB_OUTPUTS`. The documentation is rather [sparse](https://docs.github.com/en/actions/using-jobs/defining-outputs-for-jobs), but looks like we need an `outputs` map.
1 parent 9e7b288 commit be77902

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/manual-sdk-release-artifacts.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ name: Publish SDK Artifacts
1919
jobs:
2020
split-input:
2121
runs-on: ubuntu-latest
22+
outputs:
23+
sdk_path: ${{ steps.split-string.outputs.SDK_PATH }}
24+
sdk_cmake_target: ${{ steps.split-string.outputs.SDK_CMAKE_TARGET }}
2225
steps:
2326
- name: Determine CMake target and SDK library path
27+
id: split-string
2428
run: |
2529
INPUT="${{ inputs.sdk_target }}"
2630
IFS=':' read -ra PATH_AND_TARGET <<< "$INPUT"
@@ -38,11 +42,11 @@ jobs:
3842
with:
3943
ref: ${{ inputs.tag }}
4044
- id: release-sdk
41-
name: Full release of ${{ needs.split-input.outputs.SDK_PATH }}
45+
name: Full release of ${{ needs.split-input.outputs.sdk_path }}
4246
uses: ./.github/actions/sdk-release
4347
with:
4448
# The tag of the release to upload artifacts to.
4549
tag_name: ${{ inputs.tag }}
4650
github_token: ${{secrets.GITHUB_TOKEN}}
47-
sdk_path: ${{ needs.split-input.outputs.SDK_PATH }}
48-
sdk_cmake_target: ${{ needs.split-input.outputs.SDK_CMAKE_TARGET }}
51+
sdk_path: ${{ needs.split-input.outputs.sdk_path}}
52+
sdk_cmake_target: ${{ needs.split-input.outputs.sdk_cmake_target}}

0 commit comments

Comments
 (0)