Skip to content

Commit 93e94f4

Browse files
committed
CI/OCaml: load environment in GITHUB_ENV
1 parent abe39a0 commit 93e94f4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/actions/setup-ocaml/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,10 @@ runs:
1111
uses: ocaml/setup-ocaml@v3
1212
with:
1313
ocaml-compiler: ${{ inputs.ocaml_version }}
14+
15+
- name: Setup OPAM environment
16+
shell: bash
17+
run: |
18+
# Export all OPAM environment variables to GITHUB_ENV
19+
# This avoids other steps to run `eval $(opam env)`
20+
opam env | sed -E 's/; export [A-Za-z_][A-Za-z0-9_]*;?//g'

0 commit comments

Comments
 (0)