We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MAIN_STATS_ARTIFACT
1 parent 8e19900 commit 4294e19Copy full SHA for 4294e19
bundle-size/action.yml
@@ -74,7 +74,7 @@ runs:
74
MAIN_STATS_ARTIFACT: ${{ inputs.main-branch-stats-artifact }}
75
GH_TOKEN: ${{ inputs.token }}
76
run: |
77
- MAIN_STATS_RUN_ID=$(gh api /repos/${{ github.repository }}/actions/artifacts --jq ".artifacts | map(select(.name == \"${MAIN_STATS_ARTIFACT}\")) | sort_by(.created_at) | reverse | .[0].workflow_run.id")
+ MAIN_STATS_RUN_ID=$(gh api /repos/${{ github.repository }}/actions/artifacts?name=${MAIN_STATS_ARTIFACT} --jq ".artifacts | map(select(.name == \"${MAIN_STATS_ARTIFACT}\")) | sort_by(.created_at) | reverse | .[0].workflow_run.id")
78
echo "run-id=${MAIN_STATS_RUN_ID}" >> $GITHUB_OUTPUT
79
shell: bash
80
0 commit comments