ci/release: create a PR for release bump (#18791)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
6f6c07dddf
commit
935616fe9f
|
@ -76,9 +76,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
repository: gridai/base-images
|
repository: gridai/base-images
|
||||||
token: ${{ secrets.PAT_GHOST }}
|
token: ${{ secrets.PAT_GHOST }}
|
||||||
- uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: ${{ env.PYTHON_VER }}
|
|
||||||
- name: Update lightning version
|
- name: Update lightning version
|
||||||
run: |
|
run: |
|
||||||
import json, os
|
import json, os
|
||||||
|
@ -88,24 +85,45 @@ jobs:
|
||||||
vers["lightning_version"] = os.getenv('TAG')
|
vers["lightning_version"] = os.getenv('TAG')
|
||||||
with open(fname, "w", encoding="utf-8") as fopen:
|
with open(fname, "w", encoding="utf-8") as fopen:
|
||||||
json.dump(vers, fopen, indent=2)
|
json.dump(vers, fopen, indent=2)
|
||||||
|
# satisfy pre-commit with line fixer
|
||||||
|
fopen.write(os.linesep)
|
||||||
shell: python
|
shell: python
|
||||||
- run: cat versions.json
|
- run: cat versions.json
|
||||||
- name: GIT commit & push
|
|
||||||
run: |
|
- name: Create Pull Request
|
||||||
git config --global user.name "PL Ghost"
|
if: github.event_name != 'pull_request'
|
||||||
git config --global user.email pl-github@grid.ai
|
uses: peter-evans/create-pull-request@v5
|
||||||
git checkout -b ${BRANCH_NAME}
|
with:
|
||||||
git add versions.json
|
title: "Bump lightning ver `${{ env.TAG }}`"
|
||||||
git status
|
committer: GitHub <noreply@github.com>
|
||||||
git commit -m "bumping lightning version -> ${TAG}"
|
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
|
||||||
git push -u origin ${BRANCH_NAME} -f
|
token: ${{ secrets.PAT_GHOST }}
|
||||||
|
add-paths: versions.json
|
||||||
|
commit-message: "bumping lightning version -> (${{ env.TAG }})"
|
||||||
|
branch: "bump/lightning-${{ env.TAG }}"
|
||||||
|
# Delete the branch when closing pull requests, and when undeleted after merging.
|
||||||
|
delete-branch: true
|
||||||
|
# the PR"s body/content
|
||||||
|
body: >
|
||||||
|
**This is automated update with the latest lighting
|
||||||
|
[release](https://github.com/Lightning-AI/lightning/releases/tag/${{ env.TAG }})!**
|
||||||
|
|
||||||
|
Please, act swiftly to land this PR as it is effectively blocking lightning release to be finished...
|
||||||
|
assignees: |
|
||||||
|
justusschock
|
||||||
|
borda
|
||||||
|
reviewers: |
|
||||||
|
justusschock
|
||||||
|
ethanwharris
|
||||||
|
borda
|
||||||
|
|
||||||
waiting:
|
waiting:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
needs: [release-version, signaling]
|
needs: [release-version, signaling]
|
||||||
env:
|
env:
|
||||||
TAG: ${{ needs.release-version.outputs.tag }}
|
TAG: ${{ needs.release-version.outputs.tag }}
|
||||||
timeout-minutes: 90
|
# due to PR process this may take longer
|
||||||
|
timeout-minutes: 180
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
|
|
Loading…
Reference in New Issue