Skip to content

Commit

Permalink
github: use awk+sed to parse evm config yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
marioevz committed Sep 19, 2023
1 parent d690fbb commit 391ca79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/actions/build-evm/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ runs:
steps:
- name: Get the selected EVM version from the evm-config.yaml
id: evm-config-reader
uses: christian-ci/action-yaml-github-output@v2
with:
file_path: ./evm-config.yaml
main_key: ${{ inputs.type }}
shell: bash
run: |
awk "/^${{ inputs.type }}:/{flag=1; next} /^[[:alnum:]]/{flag=0} flag" ./evm-config.yaml \
| sed 's/ //g' | sed 's/:/=/g' >> "$GITHUB_OUTPUT"
- name: Print Variables for the selected EVM type
shell: bash
run: |
Expand Down

0 comments on commit 391ca79

Please sign in to comment.