Skip to content

Commit 6bc332e

Browse files
committed
test: release upload
1 parent 8ddeb92 commit 6bc332e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/scripts/upload-asset.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44
import FS from 'fs';
55

6-
const uploadReleaseAsset = async ({
6+
const uploadAsset = async ({
77
github,
88
context,
99
release_id,
@@ -20,4 +20,4 @@ const uploadReleaseAsset = async ({
2020
});
2121
};
2222

23-
export default uploadReleaseAsset;
23+
export default uploadAsset;

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
with:
2727
result-encoding: json
2828
script: |
29-
const script = await import('${{ github.workspace }}/.github/scripts/upload-asset.js');
29+
import uploadAsset from '${{ github.workspace }}/.github/scripts/upload-asset.js';
3030
const release_id = context.payload.release.id;
3131
const assetName = 'test.zip';
3232
const assetPath = '${{ github.workspace }}/test.zip';
33-
return await script({github, context, release_id, assetName, assetPath});
33+
return await uploadAsset({github, context, release_id, assetName, assetPath});

0 commit comments

Comments
 (0)