diff --git a/.github/workflows/release-workflow.yml b/.github/workflows/release-workflow.yml index f56521f..87679cb 100644 --- a/.github/workflows/release-workflow.yml +++ b/.github/workflows/release-workflow.yml @@ -15,7 +15,7 @@ jobs: uses: ncipollo/release-action@v1 with: token: ${{ secrets.GITHUB_TOKEN }} - tag: v0.5.0 + tag: v0.6.0 commit: master - name: Gitrise equipped with logs! - bodyFile: ./docs/release_notes/v0.5.0.md \ No newline at end of file + name: Gitrise getting more patient to get the build status! + bodyFile: ./docs/release_notes/v0.6.0.md \ No newline at end of file diff --git a/docs/release_notes/v0.6.0.md b/docs/release_notes/v0.6.0.md new file mode 100644 index 0000000..bab2304 --- /dev/null +++ b/docs/release_notes/v0.6.0.md @@ -0,0 +1,3 @@ +### Release Notes + +* Decreased the polling frequency of the API call that gets the build status to once every 30 seconds \ No newline at end of file diff --git a/gitrise.sh b/gitrise.sh index 954f85f..9a6ec61 100755 --- a/gitrise.sh +++ b/gitrise.sh @@ -2,7 +2,7 @@ # shellcheck disable=SC2155 # disbales "Declare and assign separately to avoid masking return values." -VERSION="0.5.0" +VERSION="0.6.0" APP_NAME="Gitrise Trigger" build_slug="" @@ -143,7 +143,7 @@ get_build_status () { local response="" while [ "${build_status}" = 0 ]; do if [ -z "${TESTING_ENABLED}" ]; then - sleep 10 + sleep 30 local command="curl --silent -X GET https://api.bitrise.io/v0.1/apps/$PROJECT_SLUG/builds/$build_slug --header 'Authorization: $ACCESS_TOKEN'" response=$(eval "${command}") else