Skip to content

Commit fde22dc

Browse files
committed
Fix paths in verify-pr-checks.sh
1 parent 2acd4e5 commit fde22dc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/script/verify-pr-checks.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/bin/bash
22
set -eu
33

4+
# Store the current working directory.
5+
INITIAL_PWD=$(pwd)
6+
47
# Sanity check that repo is clean to start with
58
if [ ! -z "$(git status --porcelain)" ]; then
69
# If we get a fail here then this workflow needs attention...
@@ -14,6 +17,9 @@ rm -rf .github/workflows/__*
1417
# Generate the PR checks
1518
pr-checks/sync.sh
1619

20+
# Restore the working directory
21+
cd "$INITIAL_PWD"
22+
1723
# Check that repo is still clean
1824
if [ ! -z "$(git status --porcelain)" ]; then
1925
# If we get a fail here then the PR needs attention
@@ -33,4 +39,4 @@ fi
3339
echo "Success: PR checks are up to date"
3440

3541
# Typecheck the TS files
36-
npm exec tsc
42+
npm exec tsc -- -p ./pr-checks

0 commit comments

Comments
 (0)