Skip to content

Commit

Permalink
Use release metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
vladsavelyev committed Nov 28, 2024
1 parent b7d003f commit 387a9fb
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/seqera_docs_changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Push changelog to Seqera Docs
on:
release:
types: [published]
workflow_dispatch:

jobs:
update-docs:
Expand All @@ -16,26 +15,30 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Create changelog file
run: |
mkdir -p seqeralabs-docs/changelog/wave
cat << EOF > seqeralabs-docs/changelog/wave/${{ github.event.release.name }}.mdx
---
title: Wave ${{ github.event.release.name }}
date: $(date +%Y-%m-%d)
tags: [wave]
---
- name: Convert changelog
id: convert
run: python ${GITHUB_WORKSPACE}/.github/workflows/seqera_docs_changelog.py
${{ github.event.release.body }}
EOF
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.SEQERALABS_DOCS_PAT }}
path: seqeralabs-docs
commit-message: "Changelog: Wave ${{ steps.convert.outputs.version }}"
title: "Changelog: Wave ${{ steps.convert.outputs.version }}"
commit-message: "Changelog: Wave ${{ github.event.release.name }}"
title: "Changelog: Wave ${{ github.event.release.name }}"
body: |
This PR adds the changelog for Wave ${{ steps.convert.outputs.version }} to the Seqera documentation.
This PR adds the changelog for Wave ${{ github.event.release.name }} to the Seqera documentation.
This is an automated PR created from the Wave repository.
branch: changelog-wave-${{ steps.convert.outputs.version }}
branch: changelog-wave-${{ github.event.release.name }}
base: master
delete-branch: true

0 comments on commit 387a9fb

Please sign in to comment.