We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7da707 commit ae3932eCopy full SHA for ae3932e
.github/workflows/formatting.yml
@@ -30,4 +30,4 @@ jobs:
30
nph --version
31
32
- name: Format the code
33
- run: nph src/
+ run: ${{ github.workspace }}/scripts/format-code.sh
scripts/format-code.sh
@@ -0,0 +1,22 @@
1
+#!/usr/bin/env bash
2
+
3
+set -e
4
+set -o pipefail
5
6
+pwd
7
+ls
8
9
+exit_val="0"
10
11
+# Format the source code.
12
+nph src || exit_val="$?"
13
14
+if [[ "${exit_val}" -ne "0" ]]
15
+ echo "format-code: nph exited with non-zero exit code $exit_val"
16
+ echo "format-code: this workflow has failed."
17
+ exit 1
18
+else
19
+ echo "format-code: nph exited with exit-code zero."
20
+ echo "format-code: this workflow has succeeded."
21
+ exit 0
22
+fi
0 commit comments