Skip to content

Commit 59bafe8

Browse files
authoredSep 25, 2024
[ISSUE apache#8747] Fix PR E2E artifact download issue (apache#8748)
* Update download artifact script * Trigger ci * Revert "Trigger ci" This reverts commit a971f32. * Trigger ci
1 parent e2abbc3 commit 59bafe8

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed
 

‎.github/workflows/pr-e2e-test.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ jobs:
2525
java-version: ["8"]
2626
steps:
2727
- name: 'Download artifact'
28-
uses: actions/github-script@v7
28+
uses: actions/github-script@v6
2929
with:
3030
script: |
31-
var artifacts = await github.actions.listWorkflowRunArtifacts({
31+
let artifacts = await github.rest.actions.listWorkflowRunArtifacts({
3232
owner: context.repo.owner,
3333
repo: context.repo.repo,
3434
run_id: ${{github.event.workflow_run.id }},
3535
});
36-
var matchArtifactRmq = artifacts.data.artifacts.filter((artifact) => {
36+
let matchArtifactRmq = artifacts.data.artifacts.filter((artifact) => {
3737
return artifact.name == "rocketmq"
3838
})[0];
39-
var download = await github.actions.downloadArtifact({
39+
let download = await github.rest.actions.downloadArtifact({
4040
owner: context.repo.owner,
4141
repo: context.repo.repo,
4242
artifact_id: matchArtifactRmq.id,
@@ -259,5 +259,4 @@ jobs:
259259
action: "clean"
260260
ask-config: "${{ secrets.ASK_CONFIG_VIRGINA }}"
261261
test-version: "${{ matrix.version }}"
262-
job-id: ${{ strategy.job-index }}
263-
262+
job-id: ${{ strategy.job-index }}

0 commit comments

Comments
 (0)
Please sign in to comment.