File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2929 uses : actions/checkout@v4
3030
3131 - name : Check main build status
32+ env :
33+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3234 run : |
3335 WORKFLOW_ID=$(gh api repos/${{ github.repository }}/actions/workflows --jq '.workflows[] | select(.name=="NodeJS Instrumentation 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 }}") | {conclusion, status}' | head -1 )
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}')
3537 STATUS=$(echo "$LATEST_RUN" | jq -r '.status')
3638 CONCLUSION=$(echo "$LATEST_RUN" | jq -r '.conclusion')
3739
4345 exit 1
4446 fi
4547 echo "Main build succeeded, proceeding with release"
46- env :
47- GH_TOKEN : ${{ github.token }}
4848
4949 - name : Build Tarball and Image Files
5050 uses : ./.github/actions/artifacts_build
You can’t perform that action at this time.
0 commit comments