Skip to content

Commit 961cb58

Browse files
committed
fix: remove indentation from Python heredoc in plugin workflow
1 parent f99d97f commit 961cb58

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

.github/workflows/build-plugin.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -149,39 +149,39 @@ jobs:
149149
"$X86_64_URL" "$X86_SHA" "$MIN_APP_VERSION" \
150150
"$ICON" "$HOMEPAGE" \
151151
<<'PYTHON_SCRIPT'
152-
import json, sys
153-
154-
bundle_id, name, version, summary = sys.argv[1:5]
155-
db_type_ids = json.loads(sys.argv[5])
156-
arm64_url, arm64_sha = sys.argv[6], sys.argv[7]
157-
x86_64_url, x86_64_sha = sys.argv[8], sys.argv[9]
158-
min_app_version, icon, homepage = sys.argv[10], sys.argv[11], sys.argv[12]
159-
160-
with open("plugins.json", "r") as f:
161-
manifest = json.load(f)
162-
163-
entry = {
164-
"id": bundle_id, "name": name, "version": version,
165-
"summary": summary,
166-
"author": {"name": "TablePro", "url": "https://tablepro.app"},
167-
"homepage": homepage, "category": "database-driver",
168-
"databaseTypeIds": db_type_ids,
169-
"downloadURL": arm64_url, "sha256": arm64_sha,
170-
"binaries": [
171-
{"architecture": "arm64", "downloadURL": arm64_url, "sha256": arm64_sha},
172-
{"architecture": "x86_64", "downloadURL": x86_64_url, "sha256": x86_64_sha}
173-
],
174-
"minAppVersion": min_app_version,
175-
"minPluginKitVersion": 1,
176-
"iconName": icon, "isVerified": True
177-
}
178-
179-
manifest["plugins"] = [p for p in manifest["plugins"] if p["id"] != bundle_id]
180-
manifest["plugins"].append(entry)
181-
182-
with open("plugins.json", "w") as f:
183-
json.dump(manifest, f, indent=2)
184-
f.write("\n")
152+
import json, sys
153+
154+
bundle_id, name, version, summary = sys.argv[1:5]
155+
db_type_ids = json.loads(sys.argv[5])
156+
arm64_url, arm64_sha = sys.argv[6], sys.argv[7]
157+
x86_64_url, x86_64_sha = sys.argv[8], sys.argv[9]
158+
min_app_version, icon, homepage = sys.argv[10], sys.argv[11], sys.argv[12]
159+
160+
with open("plugins.json", "r") as f:
161+
manifest = json.load(f)
162+
163+
entry = {
164+
"id": bundle_id, "name": name, "version": version,
165+
"summary": summary,
166+
"author": {"name": "TablePro", "url": "https://tablepro.app"},
167+
"homepage": homepage, "category": "database-driver",
168+
"databaseTypeIds": db_type_ids,
169+
"downloadURL": arm64_url, "sha256": arm64_sha,
170+
"binaries": [
171+
{"architecture": "arm64", "downloadURL": arm64_url, "sha256": arm64_sha},
172+
{"architecture": "x86_64", "downloadURL": x86_64_url, "sha256": x86_64_sha}
173+
],
174+
"minAppVersion": min_app_version,
175+
"minPluginKitVersion": 1,
176+
"iconName": icon, "isVerified": True
177+
}
178+
179+
manifest["plugins"] = [p for p in manifest["plugins"] if p["id"] != bundle_id]
180+
manifest["plugins"].append(entry)
181+
182+
with open("plugins.json", "w") as f:
183+
json.dump(manifest, f, indent=2)
184+
f.write("\n")
185185
PYTHON_SCRIPT
186186
187187
git config user.name "github-actions[bot]"

0 commit comments

Comments
 (0)