Skip to content

Commit

Permalink
Printing
Browse files Browse the repository at this point in the history
  • Loading branch information
mrobinson committed Sep 17, 2023
1 parent 056831d commit 26d3b3a
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
let configuration = ${{ inputs.configuration || '""' }};
if (configuration != "") {
console.log("Using configuration: " + JSON.stringify(configuration));
configuration.platforms = configuration.platforms.join(" ");
return configuration;
}
Expand All @@ -71,13 +72,26 @@ jobs:
}
let returnValue = {
platforms,
platforms: platforms.join(" "),
layout,
unit_tests,
};
console.log("Using configuration: " + JSON.stringify(returnValue));
return returnValue;
print:
name: Print
runs-on: ubuntu-latest
needs: ["decision"]
steps:
- name: Print stuff
run: |
echo "${{ needs.decision.outputs.configuration }}"
echo "${{ fromJson(needs.decision.outputs.configuration).platforms }}"
echo ${{ contains('linux', needs.decision.outputs.configuration) }}
echo ${{ contains('linux', toJson(needs.decision.outputs.configuration)) }}
echo ${{ contains('2013', fromJson(needs.decision.outputs.configuration).layout) }}
build-win:
name: Windows
needs: ["decision"]
Expand Down

0 comments on commit 26d3b3a

Please sign in to comment.