Skip to content

Verify that strings follow the regex pattern and match groups.

License

Notifications You must be signed in to change notification settings

bubriks/string-verifier

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File content checker

This action will validate that the provided string are following regex expression and matching on groups.

Usage

The verification is done using regex and in case of match the group tuple is returned.

Example Usage

name: My Workflow
on: [push, pull_request]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2

    - name: Check content
      uses: bubriks/string-verifier@0.0.3
      with:
        expression: ^contributions/(.+)/(.+)/
        strings: contributions/1/2/test contributions/1/2/

Result from example

groups::1 2
result::contributions/1/2/

Inputs

Input Description
expression Regex string for string verification
strings List of strings to verify

Outputs

Output Description
groups The matching groups (based on regex)
result Result of the matching

About

Verify that strings follow the regex pattern and match groups.

Resources

License

Stars

Watchers

Forks

Packages

No packages published