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 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]
You can’t perform that action at this time.
0 commit comments