Skip to content

Commit f286e03

Browse files
authored
Merge pull request Expensify#69947 from callstack-internal/fix/69622-reassure-workflow
[No QA] Fix reassure workflow by using explicit PR
2 parents 37df6da + 2f86384 commit f286e03

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/reassurePerformanceTests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ jobs:
4040
echo "Deleted file: $file"
4141
fi
4242
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"
4346

4447
- name: Run performance testing script
4548
shell: bash
@@ -54,7 +57,7 @@ jobs:
5457
git add Mobile-Expensify
5558
npm install --force || (rm -rf node_modules && npm install --force)
5659
NODE_OPTIONS=--experimental-vm-modules npx reassure --baseline
57-
git switch --force --detach -
60+
git switch --force --detach "${PR_SHA:-${GITHUB_SHA}}"
5861
cd Mobile-Expensify
5962
git checkout "$(git rev-parse HEAD)"
6063
cd ..

0 commit comments

Comments
 (0)