Skip to content

Use Node 20 instead of 16 #40

Use Node 20 instead of 16

Use Node 20 instead of 16 #40

Workflow file for this run

on: [push]
jobs:
test:
runs-on: ubuntu-latest
name: Test
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Test
uses: ./
id: test
with:
string: 'aasdfa/v1.0.1'
pattern: '[\w\d/]*v(\d+(?:\.\d+)*)'
replace-with: '$1'
- name: Check equality
run: '[[ "${{ steps.test.outputs.replaced }}" == "1.0.1" ]]'
test-whitespace:
runs-on: ubuntu-latest
name: Test whitespaces
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Test
uses: ./
id: test
with:
string: '_replace_underscores_'
pattern: '_'
replace-with: ' '
flags: 'g'
- name: Check equality
run: '[[ "${{ steps.test.outputs.replaced }}" == " replace underscores " ]]'