File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -85,20 +85,20 @@ jobs:
8585 const { resolve } = require('node:path');
8686 const { inspect } = require('node:util');
8787 const { Buffer } = require('node:buffer');
88- const inputs = `${{ toJSON(github.event.inputs) }}`;
88+ const inputs = `${{ toJSON(github.event.inputs) }}`.
89+ replace(/"platform":\s*"\[(.+)\]",/i, /"platform": [$1],/);
8990 const opt = {input:{}, dot:{}};
9091
9192 try{
9293 if(inputs.length > 0){
93- inputs = inputs.replace(/"platform":\s*"\[(.+)\]",/i, /"platform": [$1],/);
9494 opt.input = JSON.parse(inputs);
9595 if(opt.input?.etc){
9696 opt.input.etc = JSON.parse(Buffer.from(opt.input.etc, 'base64').toString('ascii'));
9797 }
9898 }
9999 }catch(e){
100- core.warning('could not parse github.event.inputs', e );
101- core.warning("${{ github.event. inputs }}" );
100+ core.warning('could not parse github.event.inputs');
101+ core.warning(inputs);
102102 }
103103
104104 try{
You can’t perform that action at this time.
0 commit comments