Skip to content

Commit

Permalink
chore: updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
prudok committed Oct 12, 2023
1 parent 044ddc8 commit 5c5ffe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
run: |
FLAVOR=$( echo ${{ github.ref_name }} | cut -d '/' -f 1)
VERSION=$( echo ${{ github.ref_name }} | cut -d '/' -f 2)
SUCCESSFUL_RELEASE_BUILDS=$( gh api --header 'Accept: application/vnd.github+json' --method GET https://api.github.com/repos/rel1nce/coriz/actions/workflows/release.yml/runs?branch=release/$VERSION&status=success | jq -r '.total_count' )
SUCCESSFUL_TEST_BUILDS=$( gh api --header 'Accept: application/vnd.github+json' --method GET https://api.github.com/repos/rel1nce/coriz/actions/workflows/release.yml/runs?branch=test/$VERSION&status=success | jq -r '.total_count' )
SUCCESSFUL_RELEASE_BUILDS=$( gh api --header 'Accept: application/vnd.github+json' --method GET "https://api.github.com/repos/rel1nce/coriz/actions/workflows/release.yml/runs?branch=release/$VERSION&status=success" | jq -r '.total_count' )
SUCCESSFUL_TEST_BUILDS=$( gh api --header 'Accept: application/vnd.github+json' --method GET "https://api.github.com/repos/rel1nce/coriz/actions/workflows/release.yml/runs?branch=test/$VERSION&status=success" | jq -r '.total_count' )
SUCCESSFUL_BUILDS=$(( $SUCCESSFUL_RELEASE_BUILDS + $SUCCESSFUL_TEST_BUILDS ))
echo "SUCCESSFUL_BUILDS=${SUCCESSFUL_BUILDS}" >> $GITHUB_OUTPUT
echo "FLAVOR=${FLAVOR}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 5c5ffe8

Please sign in to comment.