softprops / action-gh-release

📦 :octocat: GitHub Action for creating GitHub Releases
MIT License
3.85k stars 434 forks source link

files Add array type support #433

Open allentown521 opened 3 months ago

allentown521 commented 3 months ago

Currently I'm using tauri's github action to build products for various platforms, which is scattered in various folders, and it provides the steps.build-tauri.outputs.artifactPaths parameter, which is an array something like: ['/a/a.exe':'a/b/b.exe'], and I know that the The files parameter is a string and needs to be \n delimited, but even if it is written this way: files: | ${{ join(fromJson(steps.build-tauri.outputs.artifactPaths), '\n') }} Still not parsing properly as an array

🤔 Pattern 'D:\a\aichatone\aichatone\src-tauri\target\release\bundle\msi\aichatone_2.7.4_x64_en-US.msi\nD:\a\aichatone\aichatone\src-tauri\target\release\bundle\nsis\aichatone_2.7.4_x64-setup.exe' does not match any files.

JakobAnarkyLabs commented 2 months ago

I have experienced the same (delimiting with '\n' not working), but I found out that it does still work with a comma-delimited string even though the docs now only mention the newline-delimited option. So maybe the docs just need to mention the comma-delimited option as well,