mirror of
https://github.com/imartinez/privateGPT.git
synced 2026-07-17 01:48:03 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
70 lines
2.1 KiB
YAML
70 lines
2.1 KiB
YAML
name: post-release-please
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
types: [opened, synchronize, reopened]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: read
|
|
|
|
jobs:
|
|
update-openapi:
|
|
runs-on: ubuntu-latest
|
|
if: github.head_ref == 'release-please--branches--main' || github.ref_name == 'release-please--branches--main'
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v7
|
|
with:
|
|
ref: ${{ github.head_ref || github.ref_name }}
|
|
token: ${{ secrets.PAT }}
|
|
|
|
- name: Install dependencies
|
|
uses: ./.github/workflows/actions/install_dependencies
|
|
|
|
- name: Update OpenAPI spec
|
|
id: update-openapi
|
|
run: |
|
|
version=$(cat version.txt)
|
|
make api-docs
|
|
echo "version=$version" >> "$GITHUB_OUTPUT"
|
|
|
|
- name: Commit and push changes
|
|
run: |
|
|
git config user.email "ci@zylon.ai"
|
|
git config user.name "Zylon CI"
|
|
git add fern/openapi/openapi.json
|
|
git diff --staged --quiet || git commit -m "docs: update OpenAPI spec for ${{ steps.update-openapi.outputs.version }}"
|
|
git push
|
|
|
|
update-uv-lock:
|
|
runs-on: ubuntu-latest
|
|
if: github.head_ref == 'release-please--branches--main' || github.ref_name == 'release-please--branches--main'
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v7
|
|
with:
|
|
ref: ${{ github.head_ref || github.ref_name }}
|
|
token: ${{ secrets.PAT }}
|
|
|
|
- name: Install dependencies
|
|
uses: ./.github/workflows/actions/install_dependencies
|
|
|
|
- name: Refresh uv.lock
|
|
id: update-uv-lock
|
|
run: |
|
|
version=$(cat version.txt)
|
|
uv lock
|
|
echo "version=$version" >> "$GITHUB_OUTPUT"
|
|
|
|
- name: Commit and push changes
|
|
run: |
|
|
git config user.name "github-actions[bot]"
|
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
git add uv.lock
|
|
git diff --staged --quiet || git commit -m "build: update uv.lock for ${{ steps.update-uv-lock.outputs.version }}"
|
|
git push
|