File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 32
32
validate :
33
33
name : Validate ${{ matrix.os }} ghc-${{ matrix.ghc }}
34
34
runs-on : ${{ matrix.os }}
35
+ outputs :
36
+ GHC_FOR_RELEASE : ${{ format('["{0}"]', env.GHC_FOR_RELEASE) }}
35
37
strategy :
36
38
fail-fast : true
37
39
matrix :
99
101
brew install automake
100
102
101
103
- name : Set validate inputs
102
- id : validate-inputs
103
104
run : |
104
105
FLAGS=""
105
106
if [[ "${{ matrix.cli }}" == "false" ]]; then
@@ -243,7 +244,9 @@ jobs:
243
244
matrix :
244
245
os : ["ubuntu-latest", "macos-latest", "windows-latest"]
245
246
# We only use one ghc version the used one for the next release (defined at top of the workflow)
246
- ghc : ["8.10.7"]
247
+ # We need to build an array dynamically to inject the appropiate env var in a previous job,
248
+ # see https://docs.github.com/en/actions/learn-github-actions/expressions#fromjson
249
+ ghc : ${{ fromJSON (needs.validate.outputs.GHC_FOR_RELEASE) }}
247
250
248
251
steps :
249
252
- uses : actions/checkout@v2
You can’t perform that action at this time.
0 commit comments