An open API service indexing awesome lists of open source software.

https://github.com/actalog/expect

✅ Assertion for GitHub Actions
https://github.com/actalog/expect

actions github javascript regex validation

Last synced: 19 days ago
JSON representation

✅ Assertion for GitHub Actions

Awesome Lists containing this project

README

        

# @actalog/expect

[![CI](https://github.com/actalog/expect/actions/workflows/ci.yml/badge.svg)](https://github.com/actalog/expect/actions/workflows/ci.yml)
[![CD](https://github.com/actalog/expect/actions/workflows/cd.yml/badge.svg)](https://github.com/actalog/expect/actions/workflows/cd.yml)

```yml
name: Validation action

on: [push]

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actalog/expect@v1
with:
type: regex
value: [email protected]
pattern: '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$'
```