Skip to content

NeuralInnovations/action-yaml-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

action-yaml-map

Parsing input data in yaml format as a key-value dictionary and getting the value by key

- name: map
    uses: NeuralInnovations/action-yaml-map@v1
    id: map1
    key: dev1
    with:
      map: |
        dev1: dev1.host.com
        dev2: 
          domain: dev2.host.com
          port: 8080
  - name: test
    run: |
      echo "${{ steps.map1.outputs.value }}"
      echo "${{ steps.map1.outputs.status }}" # ok|fail
  #---------------------------------------------------
  - name: map
    uses: NeuralInnovations/action-yaml-map@v1
    id: map2
    key: dev2
    with:
      map: |
        dev1: dev1.host.com
        dev2: 
          domain: dev2.host.com
          port: 8080
  - name: test
    run: |
      echo "${{ steps.map2.outputs.domain }}"
      echo "${{ steps.map2.outputs.port }}"
      echo "${{ steps.map2.outputs.status }}" # ok|fail

About

Parsing input data in yaml format as a key-value dictionary and getting the value by key

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors