File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import * as core from '@actions/core';
2
2
import main from './main' ;
3
3
4
4
try {
5
+ // keep format for backwards compatibility nodejs10.x-tf1.7.4.br
5
6
const lambda = `nodejs${ core . getInput ( 'lambda' ) } .x` ;
6
7
const tensorflow = core . getInput ( 'tensorflow' ) ;
7
8
const binary = core . getInput ( 'binary' ) ;
Original file line number Diff line number Diff line change 61
61
with :
62
62
lambda : ${{ matrix.lambda }}
63
63
tensorflow : ${{ matrix.tensorflow }}
64
- binary : ' ${{ matrix.lambda }}-tf${{ matrix.tensorflow }}.br'
64
+ # keep format for backwards compatibility nodejs10.x-tf1.7.4.br
65
+ binary : ' nodejs${{ matrix.lambda }}.x-tf${{ matrix.tensorflow }}.br'
65
66
66
67
- name : List files
67
68
run : |
71
72
uses : actions/upload-artifact@v2
72
73
with :
73
74
if-no-files-found : error
74
- name : ' ${{ matrix.lambda }}-tf${{ matrix.tensorflow }}'
75
- path : ' ./${{ matrix.lambda }}-tf${{ matrix.tensorflow }}.br'
75
+ # keep format for backwards compatibility nodejs10.x-tf1.7.4.br
76
+ name : ' nodejs${{ matrix.lambda }}.x-tf${{ matrix.tensorflow }}'
77
+ path : ' ./nodejs${{ matrix.lambda }}.x-tf${{ matrix.tensorflow }}.br'
76
78
retention-days : 2
77
79
78
80
publish :
97
99
- name : Add matrix.json
98
100
working-directory : ./tfjs-node-lambda-releases
99
101
# https://stackoverflow.com/a/35589472
102
+ # keep format for backwards compatibility nodejs10.x-tf1.7.4.br
100
103
run : |
101
- echo '{"lambda":$ {{ needs.matrix.outputs.lambda }},"tensorflow":${{ needs.matrix.outputs.tensorflow }}}' >| matrix.json
104
+ echo '{"lambda":'$(node --print 'JSON.stringify($ {{ needs.matrix.outputs.lambda }}.map(version => `nodejs${version}.x`))')' ,"tensorflow":${{ needs.matrix.outputs.tensorflow }}}' >| matrix.json
102
105
103
106
- name : Fix folder structure
104
107
working-directory : ./tfjs-node-lambda-releases
You canβt perform that action at this time.
0 commit comments