We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 37df6da + 2f86384 commit f286e03Copy full SHA for f286e03
1 file changed
.github/workflows/reassurePerformanceTests.yml
@@ -40,6 +40,9 @@ jobs:
40
echo "Deleted file: $file"
41
fi
42
done
43
+ - name: Capture PR head SHA
44
+ if: ${{ github.event_name == 'pull_request' }}
45
+ run: echo "PR_SHA=${{ github.event.pull_request.head.sha }}" >> "$GITHUB_ENV"
46
47
- name: Run performance testing script
48
shell: bash
@@ -54,7 +57,7 @@ jobs:
54
57
git add Mobile-Expensify
55
58
npm install --force || (rm -rf node_modules && npm install --force)
56
59
NODE_OPTIONS=--experimental-vm-modules npx reassure --baseline
- git switch --force --detach -
60
+ git switch --force --detach "${PR_SHA:-${GITHUB_SHA}}"
61
cd Mobile-Expensify
62
git checkout "$(git rev-parse HEAD)"
63
cd ..
0 commit comments