diff --git a/.github/workflows/seqera_docs_changelog.yml b/.github/workflows/seqera_docs_changelog.yml index a2c774c11..1d007f154 100644 --- a/.github/workflows/seqera_docs_changelog.yml +++ b/.github/workflows/seqera_docs_changelog.yml @@ -2,7 +2,6 @@ name: Push changelog to Seqera Docs on: release: types: [published] - workflow_dispatch: jobs: update-docs: @@ -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