We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
verify-pr-checks.sh
1 parent 2acd4e5 commit fde22dcCopy full SHA for fde22dc
.github/workflows/script/verify-pr-checks.sh
@@ -1,6 +1,9 @@
1
#!/bin/bash
2
set -eu
3
4
+# Store the current working directory.
5
+INITIAL_PWD=$(pwd)
6
+
7
# Sanity check that repo is clean to start with
8
if [ ! -z "$(git status --porcelain)" ]; then
9
# If we get a fail here then this workflow needs attention...
@@ -14,6 +17,9 @@ rm -rf .github/workflows/__*
14
17
# Generate the PR checks
15
18
pr-checks/sync.sh
16
19
20
+# Restore the working directory
21
+cd "$INITIAL_PWD"
22
23
# Check that repo is still clean
24
25
# If we get a fail here then the PR needs attention
@@ -33,4 +39,4 @@ fi
33
39
echo "Success: PR checks are up to date"
34
40
35
41
# Typecheck the TS files
36
-npm exec tsc
42
+npm exec tsc -- -p ./pr-checks
0 commit comments