Skip to content

Commit 31246b6

Browse files
committed
chore: fix workflow backticks
1 parent e34c82d commit 31246b6

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/tests.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,14 @@ jobs:
2323
steps:
2424
- name: 🧐 Determine Job to Run
2525
id: set-vars
26-
shell: bash
26+
env:
27+
PR_TITLE: ${{ github.event.pull_request.title }}
2728
run: |
28-
PR_TITLE="${{ github.event.pull_request.title }}"
29-
UNIT_TEST_REGEX='(@typescript-eslint|vitest|eslint|@types|@tsconfig|ts-node|jsdom|typescript)'
30-
WEB_TEST_REGEX='(@wdio(?!\/appium-service)|copyfiles|rimraf|saucelabs|lambdatest|webdriverio)'
31-
if [[ $PR_TITLE =~ $UNIT_TEST_REGEX ]]; then
32-
echo "::set-output name=run_unit_tests::true"
33-
fi
34-
if [[ $PR_TITLE =~ $WEB_TEST_REGEX ]]; then
35-
echo "::set-output name=run_web_tests::true"
29+
echo "$PR_TITLE" | grep -qE '@typescript-eslint|vitest|eslint|@types|@tsconfig|ts-node|jsdom|typescript' && echo "run_unit_tests=true" >> "$GITHUB_OUTPUT"
30+
if echo "$PR_TITLE" | grep -qE 'copyfiles|rimraf|saucelabs|lambdatest|webdriverio'; then
31+
echo "run_web_tests=true" >> "$GITHUB_OUTPUT"
32+
elif echo "$PR_TITLE" | grep -q '@wdio/' && ! echo "$PR_TITLE" | grep -q '@wdio/appium-service'; then
33+
echo "run_web_tests=true" >> "$GITHUB_OUTPUT"
3634
fi
3735
3836
ci-dependency-unit-test:

0 commit comments

Comments
 (0)