Skip to content

Commit 889b9df

Browse files
pass release JSON as python raw string literal
JSON may have escape sequences like \r and \n, raw string literal disables processing them - it's JSON parser's job
1 parent 130d8e5 commit 889b9df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/vcmi-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
run: |
1414
import json
1515
envFile = open('${{ github.env }}', 'a')
16-
release = json.loads('''${{ toJSON(github.event.client_payload.release) }}''')
16+
release = json.loads(r'''${{ toJSON(github.event.client_payload.release) }}''')
1717
for asset in release['assets']:
1818
artifactName = asset['name']
1919
if 'macOS-intel' in artifactName:

0 commit comments

Comments
 (0)