mirror of
https://github.com/bentoml/OpenLLM.git
synced 2026-05-24 16:44:39 -04:00
chore(ci): simplify bump dev workflow [skip ci]
Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
This commit is contained in:
25
.github/workflows/release-notes.yml
vendored
25
.github/workflows/release-notes.yml
vendored
@@ -84,12 +84,14 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Setup CI
|
||||
uses: ./.github/actions/setup-repo
|
||||
with:
|
||||
python-version: '3.11'
|
||||
- name: Setup python
|
||||
uses: actions/setup-python@v4
|
||||
- name: Install dependencies
|
||||
run: pip install hatch towncrier
|
||||
- name: Install jq and curl
|
||||
run: sudo apt-get install -y jq curl
|
||||
- name: Import bot's GPG key for signing commits
|
||||
id: import-gpg
|
||||
id: import-gpg-key
|
||||
uses: crazy-max/ghaction-import-gpg@v5
|
||||
with:
|
||||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||
@@ -98,20 +100,15 @@ jobs:
|
||||
git_user_signingkey: true
|
||||
git_commit_gpgsign: true
|
||||
git_tag_gpgsign: true
|
||||
- name: Install jq and curl
|
||||
run: sudo apt-get install -y jq curl
|
||||
- name: Bump version to dev
|
||||
env:
|
||||
GIT_AUTHOR_NAME: ${{ steps.import-gpg.outputs.name }}
|
||||
GIT_AUTHOR_EMAIL: ${{ steps.import-gpg.outputs.email }}
|
||||
GIT_COMMITTER_NAME: ${{ steps.import-gpg.outputs.name }}
|
||||
GIT_COMMITTER_EMAIL: ${{ steps.import-gpg.outputs.email }}
|
||||
GIT_AUTHOR_NAME: ${{ steps.import-gpg-key.outputs.name }}
|
||||
GIT_AUTHOR_EMAIL: ${{ steps.import-gpg-key.outputs.email }}
|
||||
GIT_COMMITTER_NAME: ${{ steps.import-gpg-key.outputs.name }}
|
||||
GIT_COMMITTER_EMAIL: ${{ steps.import-gpg-key.outputs.email }}
|
||||
run: |
|
||||
git pull --autostash --no-edit --gpg-sign --ff origin main
|
||||
|
||||
echo "Bumping version to dev..." && hatch version patch && hatch version dev
|
||||
|
||||
jq --arg release_version "$(hatch version)" '.version = $release_version' < package.json > package.json.tmp && mv package.json.tmp package.json
|
||||
|
||||
git add src/openllm/__about__.py package.json && git commit -S -sm "infra: bump to dev version of $(hatch version) [generated] [skip ci]"
|
||||
git push origin HEAD:main
|
||||
|
||||
Reference in New Issue
Block a user