From ba0e1cea08a4d8fa4de88ab171dbbe1d9e35b83f Mon Sep 17 00:00:00 2001 From: defnotken Date: Fri, 29 Aug 2025 19:40:00 -0500 Subject: [PATCH] Update lightless-tag-and-release.yml --- .github/workflows/lightless-tag-and-release.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lightless-tag-and-release.yml b/.github/workflows/lightless-tag-and-release.yml index 03e5516..9391829 100644 --- a/.github/workflows/lightless-tag-and-release.yml +++ b/.github/workflows/lightless-tag-and-release.yml @@ -120,6 +120,16 @@ jobs: $repoJson | ConvertTo-Json -Depth 100 | Set-Content $repoJsonPath + # Convert to JSON and force array brackets if necessary + $repoJsonString = $repoJson | ConvertTo-Json -Depth 100 + + # If the output is not an array, wrap it manually + if ($repoJsonString.Trim().StartsWith('{')) { + $repoJsonString = "[$repoJsonString]" + } + + $repoJsonString | Set-Content $repoJsonPath + - name: Commit and push to LightlessSync run: | cd LightlessSyncRepo/LightlessSync @@ -127,4 +137,4 @@ jobs: git config user.email "github-actions@github.com" git add . git commit -m "Update ${{ env.PLUGIN_NAME }} to ${{ steps.package_version.outputs.version }}" - git push https://x-access-token:${{ secrets.LIGHTLESS_TOKEN }}@github.com/${{ github.repository_owner }}/LightlessSync.git HEAD:main \ No newline at end of file + git push https://x-access-token:${{ secrets.LIGHTLESS_TOKEN }}@github.com/${{ github.repository_owner }}/LightlessSync.git HEAD:main