Skip to content

Commit 7336e4a

Browse files
bsideuprnorth
authored andcommitted
Extract the CI status check into a script (#2113)
1 parent 8ed2cfa commit 7336e4a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/gradle-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
with:
1515
java-version: 1.8
1616
- name: Verify CI check status
17-
run: "[ $(curl -s https://api.github.com/repos/testcontainers/testcontainers-java/commits/$GITHUB_SHA/status | jq -r '.state') == 'success' ]"
17+
run: .github/workflows/scripts/check_ci_status.sh
1818
- name: Release with Gradle
1919
run: ./gradlew -Pversion=$GITHUB_REF release --scan --no-daemon -i
2020
env:
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#/bin/bash
2+
3+
[ $(curl -s https://api.github.com/repos/testcontainers/testcontainers-java/commits/$1/status | jq -r '.state') == 'success' ]

0 commit comments

Comments
 (0)