chore: import upstream snapshot with attribution
CodeQL / Analyze (python) (push) Has been cancelled
Update Platform Components Table / update (push) Has been cancelled
Docker image release / Build base image (push) Has been cancelled
Sync docs with Docusaurus / sync (push) Has been cancelled
Tests / Check if changed (push) Has been cancelled
Tests / format (push) Has been cancelled
Tests / check-imports (push) Has been cancelled
Tests / Unit / macos-latest (push) Has been cancelled
Tests / Unit / ubuntu-latest (push) Has been cancelled
Tests / Unit / windows-latest (push) Has been cancelled
Tests / mypy (push) Has been cancelled
Tests / Integration / ubuntu-latest (push) Has been cancelled
Tests / Integration / macos-latest (push) Has been cancelled
Tests / Integration / windows-latest (push) Has been cancelled
Tests / notify-slack-on-failure (push) Has been cancelled
Tests / Mark tests as completed (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Update Platform Components Table / update (push) Has been cancelled
Docker image release / Build base image (push) Has been cancelled
Sync docs with Docusaurus / sync (push) Has been cancelled
Tests / Check if changed (push) Has been cancelled
Tests / format (push) Has been cancelled
Tests / check-imports (push) Has been cancelled
Tests / Unit / macos-latest (push) Has been cancelled
Tests / Unit / ubuntu-latest (push) Has been cancelled
Tests / Unit / windows-latest (push) Has been cancelled
Tests / mypy (push) Has been cancelled
Tests / Integration / ubuntu-latest (push) Has been cancelled
Tests / Integration / macos-latest (push) Has been cancelled
Tests / Integration / windows-latest (push) Has been cancelled
Tests / notify-slack-on-failure (push) Has been cancelled
Tests / Mark tests as completed (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
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 }}
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
push-release-notes-to-website:
|
||||
|
||||
runs-on: ubuntu-slim
|
||||
steps:
|
||||
- name: Checkout Haystack home repository
|
||||
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||
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_NUMBER.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@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
|
||||
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 }}"
|
||||
Reference in New Issue
Block a user