ci: format json in signaling (#17891)
This commit is contained in:
parent
049f6c576a
commit
a78991794a
|
@ -74,6 +74,7 @@ jobs:
|
|||
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
|
||||
env:
|
||||
TAG: ${{ needs.release-version.outputs.tag }}
|
||||
BRANCH_NAME: "trigger/lightning-${{ needs.release-version.outputs.tag }}"
|
||||
steps:
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
|
@ -85,16 +86,15 @@ jobs:
|
|||
- name: Update lightning version
|
||||
run: |
|
||||
import json, os
|
||||
with open("versions.json") as fo:
|
||||
fname = "versions.json"
|
||||
with open(fname, encoding="utf-8") as fo:
|
||||
vers = json.load(fo)
|
||||
vers["lightning_version"] = os.getenv('TAG')
|
||||
with open("versions.json", "w") as fw:
|
||||
json.dump(vers, fw)
|
||||
with open(fname, "w", encoding="utf-8") as fw:
|
||||
json.dump(vers, fw, indent=2)
|
||||
shell: python
|
||||
- run: cat versions.json
|
||||
- name: GIT commit & push
|
||||
env:
|
||||
BRANCH_NAME: "trigger/lightning-${{ env.TAG }}"
|
||||
run: |
|
||||
git config --global user.name "PL Ghost"
|
||||
git config --global user.email pl-github@grid.ai
|
||||
|
|
Loading…
Reference in New Issue