Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 613 Bytes

File metadata and controls

35 lines (26 loc) · 613 Bytes

Navigation

Parsing

steps:
  - name: Parse shit from string
    id: shit
    uses: release-kit/regex@v1
    with:
      string: 'aaa123123bbb'
      pattern: '^aaa(?<numbers>.*)bbb$'

Using a result

- name: Use parsed version
  run: |
    echo "${{ steps.shit.outputs.numbers }}" # 123123

Options

  • string (required) - a string to be parsed
  • pattern (required) - regex to parse the string

Outputs

Each output key is the matched named group from your pattern