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 3333 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3434 run : |
3535 WORKFLOW_ID=$(gh api repos/${{ github.repository }}/actions/workflows --jq '.workflows[] | select(.name=="NodeJS Instrumentation Main Build") | .id')
36- 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}')
36+ 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}')
3737 STATUS=$(echo "$LATEST_RUN" | jq -r '.status')
3838 CONCLUSION=$(echo "$LATEST_RUN" | jq -r '.conclusion')
3939
You can’t perform that action at this time.
0 commit comments