File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 74
74
if : startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
75
75
env :
76
76
TAG : ${{ needs.release-version.outputs.tag }}
77
+ BRANCH_NAME : " trigger/lightning-${{ needs.release-version.outputs.tag }}"
77
78
steps :
78
79
- uses : actions/setup-python@v4
79
80
with :
@@ -85,16 +86,15 @@ jobs:
85
86
- name : Update lightning version
86
87
run : |
87
88
import json, os
88
- with open("versions.json") as fo:
89
+ fname = "versions.json"
90
+ with open(fname, encoding="utf-8") as fo:
89
91
vers = json.load(fo)
90
92
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 )
93
95
shell : python
94
96
- run : cat versions.json
95
97
- name : GIT commit & push
96
- env :
97
- BRANCH_NAME : " trigger/lightning-${{ env.TAG }}"
98
98
run : |
99
99
git config --global user.name "PL Ghost"
100
100
git config --global user.email [email protected]
You can’t perform that action at this time.
0 commit comments