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