We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a427f77 commit 4132876Copy full SHA for 4132876
.github/workflows/baseline-visual-regression.yml
@@ -32,10 +32,11 @@ jobs:
32
# Extract target stories from PR body
33
- name: Extract target stories
34
id: extract_stories
35
+ env:
36
+ PR_BODY: ${{ github.event.pull_request.body }}
37
run: |
- # Get the last merged PR details
- PR_BODY=$(gh pr view $(git log -1 --pretty=format:"%s" | grep -oP '#\d+') --json body -q '.body')
38
- if [[ $PR_BODY == *"package: skin"* ]]; then
+ # Use the PR_BODY environment variable securely
39
+ if [[ "$PR_BODY" == *"package: skin"* ]]; then
40
STORIES=$(echo "$PR_BODY" | awk '/Percy Stories/{getline; print}')
41
if [ -z "$STORIES" ]; then
42
echo "No Percy Stories found in PR body."
0 commit comments