Skip to content

Commit

Permalink
Extract the CI status check into a script (#2113)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsideup authored and rnorth committed Nov 29, 2019
1 parent 8ed2cfa commit 7336e4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/gradle-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
with:
java-version: 1.8
- name: Verify CI check status
run: "[ $(curl -s https://api.github.com/repos/testcontainers/testcontainers-java/commits/$GITHUB_SHA/status | jq -r '.state') == 'success' ]"
run: .github/workflows/scripts/check_ci_status.sh
- name: Release with Gradle
run: ./gradlew -Pversion=$GITHUB_REF release --scan --no-daemon -i
env:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/scripts/check_ci_status.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#/bin/bash

[ $(curl -s https://api.github.com/repos/testcontainers/testcontainers-java/commits/$1/status | jq -r '.state') == 'success' ]

0 comments on commit 7336e4a

Please sign in to comment.