Skip to content

Commit 4294e19

Browse files
authored
feat(bundle-size): prefilter for MAIN_STATS_ARTIFACT (#174)
1 parent 8e19900 commit 4294e19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bundle-size/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ runs:
7474
MAIN_STATS_ARTIFACT: ${{ inputs.main-branch-stats-artifact }}
7575
GH_TOKEN: ${{ inputs.token }}
7676
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")
77+
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")
7878
echo "run-id=${MAIN_STATS_RUN_ID}" >> $GITHUB_OUTPUT
7979
shell: bash
8080

0 commit comments

Comments
 (0)