mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-02-07 15:32:26 +00:00
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 7 to 8. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/v7...v8) --- updated-dependencies: - dependency-name: peter-evans/create-pull-request dependency-version: '8' 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>
63 lines
2.0 KiB
YAML
63 lines
2.0 KiB
YAML
name: Push release notes to website
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
description: 'Haystack version (vX.Y.Z)'
|
|
required: true
|
|
type: string
|
|
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
VERSION: ${{ inputs.version }}
|
|
|
|
jobs:
|
|
push-release-notes-to-website:
|
|
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Haystack home repository
|
|
uses: actions/checkout@v6
|
|
with:
|
|
repository: deepset-ai/haystack-home
|
|
|
|
- name: Get release notes and add frontmatter
|
|
id: release_notes
|
|
|
|
run: |
|
|
VERSION_NUMBER="${VERSION:1}"
|
|
RELEASE_DATE=$(gh release view "$VERSION" --repo deepset-ai/haystack --json publishedAt --jq '.publishedAt | split("T")[0]')
|
|
RELEASE_NOTES_PATH="content/release-notes/$VERSION.md"
|
|
|
|
{
|
|
echo "---"
|
|
echo "title: Haystack $VERSION_NUMBER"
|
|
echo "description: Release notes for Haystack $VERSION_NUMBER"
|
|
echo "toc: True"
|
|
echo "date: $RELEASE_DATE"
|
|
echo "last_updated: $RELEASE_DATE"
|
|
echo 'tags: ["Release Notes"]'
|
|
echo "link: https://github.com/deepset-ai/haystack/releases/tag/$VERSION"
|
|
echo "---"
|
|
echo ""
|
|
} > "$RELEASE_NOTES_PATH"
|
|
|
|
gh release view "$VERSION" --repo deepset-ai/haystack --json body --jq '.body' >> "$RELEASE_NOTES_PATH"
|
|
|
|
cat "$RELEASE_NOTES_PATH"
|
|
|
|
- name: Create Pull Request to Haystack Home
|
|
uses: peter-evans/create-pull-request@v8
|
|
with:
|
|
token: ${{ secrets.HAYSTACK_BOT_TOKEN }}
|
|
commit-message: "Add release notes for Haystack ${{ env.VERSION }}"
|
|
branch: add-release-notes-for-haystack-${{ env.VERSION }}
|
|
base: main
|
|
title: "docs: add release notes for Haystack ${{ env.VERSION }}"
|
|
add-paths: |
|
|
content/release-notes
|
|
body: |
|
|
This PR adds the release notes for Haystack ${{ env.VERSION }} to the website.
|
|
reviewers: "${{ github.actor }}"
|