There was an error while loading. Please reload this page.
1 parent 32fc271 commit 5f5ab61Copy full SHA for 5f5ab61
.github/workflows/playwright.yml
@@ -52,10 +52,9 @@ jobs:
52
53
- name: Get Affected Workspaces
54
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"
+ # For PRs, compare against the origin's version of the base branch.
+ # For pushes, compare against the commit before the push.
+ run: bash samples/find-changes.sh ${{ github.event_name == 'pull_request' && format('origin/{0}', github.base_ref) || github.event.before }}
59
60
- name: Setup Node.js
61
uses: actions/setup-node@v4
0 commit comments