mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-09-26 00:24:14 +00:00
fix: make minor_version_release.yml
to run on the v1.x branch (#6547)
* Fix minor_version_release.yml to run on the v1.x branch * review
This commit is contained in:
parent
923efd88b2
commit
d0c115fc9d
12
.github/workflows/minor_version_release.yml
vendored
12
.github/workflows/minor_version_release.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: Minor Version Release
|
||||
name: Minor Version Release (1.x)
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
@ -12,6 +12,8 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout this repo
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: "v1.x"
|
||||
|
||||
- name: Define all versions
|
||||
id: versions
|
||||
@ -30,12 +32,12 @@ jobs:
|
||||
git checkout -b v${{ steps.versions.outputs.current_release_minor }}.x
|
||||
git push -u origin v${{ steps.versions.outputs.current_release_minor }}.x --tags
|
||||
|
||||
- name: Bump version on main
|
||||
- name: Bump version on v1.x
|
||||
shell: bash
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
git checkout main
|
||||
git checkout v1.x
|
||||
NEW_VERSION=$(awk -F. '/[0-9]+\./{$2++;print}' OFS=. < VERSION.txt)
|
||||
echo "$NEW_VERSION" > VERSION.txt
|
||||
cat VERSION.txt
|
||||
@ -43,7 +45,7 @@ jobs:
|
||||
git commit -m "Update unstable version to $NEW_VERSION"
|
||||
VERSION_TAG="v$NEW_VERSION"
|
||||
git tag $VERSION_TAG -m"$VERSION_TAG"
|
||||
git push --atomic origin main $VERSION_TAG
|
||||
git push --atomic origin v1.x $VERSION_TAG
|
||||
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
@ -56,5 +58,5 @@ jobs:
|
||||
env:
|
||||
RDME_API_KEY: ${{ secrets.README_API_KEY }}
|
||||
run: |
|
||||
git checkout main
|
||||
git checkout v1.x
|
||||
python ./.github/utils/release_docs.py --new-version ${{ steps.versions.outputs.current_release_minor }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user