Skip to content

release-kit/regex

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published