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.
1 parent ad58df0 commit 7f9ff79Copy full SHA for 7f9ff79
.github/workflows/scripts/check_ci_status.sh
@@ -1,3 +1,13 @@
1
#/bin/bash
2
+set -o errexit
3
+set -o nounset
4
+set -o pipefail
5
+set -o xtrace
6
-[ $(curl -s https://api.github.com/repos/testcontainers/testcontainers-java/commits/$1/status | jq -r '.state') == 'success' ]
7
+if [ -z $1 ] ; then
8
+ echo "First parameter (commit SHA) is required!" && exit 1;
9
+fi
10
+
11
+STATUS=$(curl -s https://api.github.com/repos/testcontainers/testcontainers-java/commits/$1/status | jq -r '.state')
12
13
+[ "$STATUS" == 'success' ]
0 commit comments