File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 5050 runs-on : ${{ fromJson(inputs.runs-on) }}
5151 outputs :
5252 changed-documentations : ${{ steps.generate-documentation.outputs.destination }}
53+ artifact-id : ${{ steps.upload-artifact.outputs.artifact-id }}
5354
5455 steps :
5556 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -127,10 +128,14 @@ jobs:
127128 script : |
128129 // FIXME: Workaround to preserve full path to artifact, add a wildcard to the first folder of the absolute path
129130 const destinations = ${{ toJson(steps.generate-documentation.outputs.destination) }};
130- const artifactPaths = destinations.map(d => d.replace(/\/([^/]+)/, '/*$1'));
131+ const artifactPaths = destinations
132+ .split('\n')
133+ .map(destination => join(${{ toJson(github.workspace) }},destination).replace(/\/([^/]+)/, '/*$1'))
134+ .join('\n');
131135 core.setOutput('artifact-paths', artifactPaths);
132136
133- - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
137+ - id : upload-artifact
138+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
134139 with :
135140 name : changed-files
136141 path : ${{ steps.generated-documentation.outputs.artifact-paths }}
@@ -147,7 +152,7 @@ jobs:
147152
148153 - uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
149154 with :
150- pattern : changed-files
155+ artifact-ids : ${{ needs.generate-documentation.outputs.artifact-id }}
151156 path : /
152157
153158 # jscpd:ignore-start
You can’t perform that action at this time.
0 commit comments