Skip to content

Commit

Permalink
ci: format json in signaling (#17891)
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda authored Jun 22, 2023
1 parent 049f6c5 commit a789917
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit a789917

Please sign in to comment.