Skip to content

Commit

Permalink
Update build-component.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
s0hv authored Jun 1, 2024
1 parent 8288b85 commit 40417c1
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/build-component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,24 +60,21 @@ jobs:
compute:
runs-on: ubuntu-latest
outputs:
BUILD_CONFIGURATION: ${{ steps.compute.outputs.BUILD_CONFIGURATION }}
PLATFORM: ${{ steps.compute.outputs.PLATFORM }}
BUILD_CONFIGURATION: ${{ env.BUILD_CONFIGURATION }}
PLATFORM: ${{ env.PLATFORM }}
Debug: ${{ steps.compute.outputs.Debug }}
Release: ${{ steps.compute.outputs.Release }}
steps:
- name: Compute outputs
id: compute
run: |
echo "BUILD_CONFIGURATION=${{ env.BUILD_CONFIGURATION }}" >> $GITHUB_OUTPUT
echo "PLATFORM=${{ env.PLATFORM }}" >> $GITHUB_OUTPUT
echo "Debug=${{ contains(fromJSON(format('[{0}]', env.BUILD_CONFIGURATION)), 'Debug') }}" >> $GITHUB_OUTPUT
echo "Release=${{ contains(fromJSON(format('[{0}]', env.BUILD_CONFIGURATION)), 'Release') }}" >> $GITHUB_OUTPUT
echo "${{ contains(fromJSON(format('[{0}]', env.BUILD_CONFIGURATION)), 'Release') }}"
- name: Print outputs
run: |
echo "BUILD_CONFIGURATION: ${{ steps.compute.outputs.BUILD_CONFIGURATION }}"
echo "PLATFORM: ${{ steps.compute.outputs.PLATFORM }}"
echo "BUILD_CONFIGURATION: ${{ env.BUILD_CONFIGURATION }}"
echo "PLATFORM: ${{ env.PLATFORM }}"
echo "Debug: ${{ steps.compute.outputs.Debug }}"
echo "Release: ${{ steps.compute.outputs.Release }}"
Expand Down

0 comments on commit 40417c1

Please sign in to comment.