Skip to content

Commit a427f77

Browse files
committed
fix(percy): addressed PR feedback
1 parent 05791d7 commit a427f77

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/baseline-visual-regression.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set up Node.js
2323
uses: actions/setup-node@v3
2424
with:
25-
node-version: 16
25+
node-version: 22
2626

2727
# Install dependencies
2828
- name: Install dependencies

.github/workflows/pr-visual-regression.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Set up Node.js
2727
uses: actions/setup-node@v3
2828
with:
29-
node-version: 16
29+
node-version: 22
3030

3131
# Install dependencies
3232
- name: Install dependencies
@@ -36,8 +36,10 @@ jobs:
3636
# Extract target stories from PR body
3737
- name: Extract target stories
3838
id: extract_stories
39+
env:
40+
PR_BODY: ${{ github.event.pull_request.body }}
3941
run: |
40-
STORIES=$(echo "${{ github.event.pull_request.body }}" | awk '/Percy Stories/{getline; print}')
42+
STORIES=$(echo "PR_BODY" | awk '/Percy Stories/{getline; print}')
4143
if [ -z "$STORIES" ]; then
4244
echo "No Percy Stories found in PR body."
4345
exit 0

0 commit comments

Comments
 (0)