File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 3131 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3232 run : |
3333 WORKFLOW_ID=$(gh api repos/${{ github.repository }}/actions/workflows --jq '.workflows[] | select(.name=="Java Agent Main Build") | .id')
34- LATEST_RUN=$(gh api repos/${{ github.repository }}/actions/workflows/$WORKFLOW_ID/runs --jq '[.workflow_runs[] | select(.head_branch=="${{ github.ref_name }}")] | sort_by(.created_at) | reverse | .[0 ] | {conclusion, status}')
34+ LATEST_RUN=$(gh api repos/${{ github.repository }}/actions/workflows/$WORKFLOW_ID/runs --jq '[.workflow_runs[] | select(.head_branch=="${{ github.ref_name }}")] | sort_by(.created_at) | .[-1 ] | {conclusion, status}')
3535 STATUS=$(echo "$LATEST_RUN" | jq -r '.status')
3636 CONCLUSION=$(echo "$LATEST_RUN" | jq -r '.conclusion')
3737
You can’t perform that action at this time.
0 commit comments