Skip to content

Commit eca097f

Browse files
Bordalantiga
authored andcommitted
ci: format json in signaling (#17891)
(cherry picked from commit a789917)
1 parent d40c94f commit eca097f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release-pypi.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ jobs:
7474
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
7575
env:
7676
TAG: ${{ needs.release-version.outputs.tag }}
77+
BRANCH_NAME: "trigger/lightning-${{ needs.release-version.outputs.tag }}"
7778
steps:
7879
- uses: actions/setup-python@v4
7980
with:
@@ -85,16 +86,15 @@ jobs:
8586
- name: Update lightning version
8687
run: |
8788
import json, os
88-
with open("versions.json") as fo:
89+
fname = "versions.json"
90+
with open(fname, encoding="utf-8") as fo:
8991
vers = json.load(fo)
9092
vers["lightning_version"] = os.getenv('TAG')
91-
with open("versions.json", "w") as fw:
92-
json.dump(vers, fw)
93+
with open(fname, "w", encoding="utf-8") as fw:
94+
json.dump(vers, fw, indent=2)
9395
shell: python
9496
- run: cat versions.json
9597
- name: GIT commit & push
96-
env:
97-
BRANCH_NAME: "trigger/lightning-${{ env.TAG }}"
9898
run: |
9999
git config --global user.name "PL Ghost"
100100
git config --global user.email [email protected]

0 commit comments

Comments
 (0)