Skip to content

Commit f4e3a60

Browse files
committed
github: use awk+sed to parse evm config yaml
1 parent e766357 commit f4e3a60

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/actions/build-evm/action.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ runs:
2020
steps:
2121
- name: Get the selected EVM version from the evm-config.yaml
2222
id: evm-config-reader
23-
uses: christian-ci/action-yaml-github-output@v2
24-
with:
25-
file_path: ./evm-config.yaml
26-
main_key: ${{ inputs.type }}
23+
shell: bash
24+
run: |
25+
awk "/^${{ inputs.type }}:/{flag=1; next} /^[[:alnum:]]/{flag=0} flag" ./evm-config.yaml \
26+
| sed 's/ //g' | sed 's/:/=/g' >> "$GITHUB_OUTPUT"
2727
- name: Print Variables for the selected EVM type
2828
shell: bash
2929
run: |

0 commit comments

Comments
 (0)