Skip to content

Commit 5f5ab61

Browse files
authored
fix: reverts Get Affected workspaces to earlier (#649)
Changes Get Affected Workspaces to use an earlier version of the code. It works but its value isn't being picked up correctly later in the script.
1 parent 32fc271 commit 5f5ab61

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎.github/workflows/playwright.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,9 @@ jobs:
5252

5353
- name: Get Affected Workspaces
5454
id: get_workspaces
55-
run: |
56-
BASE_REF=$([ "${{ github.event_name }}" == "pull_request" ] && echo "origin/${{ github.base_ref }}" || echo "${{ github.event.before }}")
57-
echo "Using BASE_REF: $BASE_REF" # Optional: for debugging
58-
bash samples/find-changes.sh "$BASE_REF"
55+
# For PRs, compare against the origin's version of the base branch.
56+
# For pushes, compare against the commit before the push.
57+
run: bash samples/find-changes.sh ${{ github.event_name == 'pull_request' && format('origin/{0}', github.base_ref) || github.event.before }}
5958

6059
- name: Setup Node.js
6160
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)